diff --git a/driver/driver.go b/driver/driver.go index 2eec3546f..89c442e78 100644 --- a/driver/driver.go +++ b/driver/driver.go @@ -99,7 +99,7 @@ func (d *Driver) Start() error { } // Close closes the driver instance. -func (d *Driver) Close(ctx context.Context) { +func (d *Driver) Close(_ context.Context) { d.l1HeadSub.Unsubscribe() d.state.Close() d.wg.Wait() diff --git a/proposer/proposer.go b/proposer/proposer.go index 825d5f08d..5cb5ea79b 100644 --- a/proposer/proposer.go +++ b/proposer/proposer.go @@ -192,7 +192,7 @@ func (p *Proposer) eventLoop() { } // Close closes the proposer instance. -func (p *Proposer) Close(ctx context.Context) { +func (p *Proposer) Close(_ context.Context) { p.wg.Wait() }