From 90cff60629f994079c8930d942aa169d3a47e6ac Mon Sep 17 00:00:00 2001 From: David Date: Tue, 9 Apr 2024 15:09:32 +0800 Subject: [PATCH] fix: fix lint --- driver/driver.go | 2 +- proposer/proposer.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() }