Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Alok committed Feb 3, 2024
1 parent 0daa571 commit 6dee5bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 0 additions & 2 deletions pkg/settler/settler.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,6 @@ func (s *Settler) Start(ctx context.Context) <-chan struct{} {
return err
}

commitmentIndexes = commitmentIndexes[:0]

s.metrics.LastUsedNonce.Set(float64(commitmentPostingTxn.Nonce()))
s.metrics.SettlementsPostedCount.Inc()
s.metrics.CurrentSettlementL1Block.Set(float64(settlement.BlockNum))
Expand Down
7 changes: 6 additions & 1 deletion pkg/store/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ func TestStore(t *testing.T) {
if err != nil {
t.Fatalf("Failed to start PostgreSQL container: %s", err)
}
defer postgresContainer.Terminate(ctx)
defer func() {
err := postgresContainer.Terminate(ctx)
if err != nil {
t.Errorf("Failed to terminate PostgreSQL container: %s", err)
}
}()

// Retrieve the container's mapped port
mappedPort, err := postgresContainer.MappedPort(ctx, "5432")
Expand Down

0 comments on commit 6dee5bb

Please sign in to comment.