Skip to content

Commit

Permalink
context cleanup (#13047)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmank88 authored Apr 30, 2024
1 parent 5b87de0 commit 61106ec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions common/client/poller.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ func (p *Poller[T]) pollingLoop() {
return
case <-ticker.C:
// Set polling timeout
pollingCtx, cancelPolling := context.WithTimeout(context.Background(), p.pollingTimeout)
p.stopCh.CtxCancel(pollingCtx, cancelPolling)
pollingCtx, cancelPolling := p.stopCh.CtxCancel(context.WithTimeout(context.Background(), p.pollingTimeout))
// Execute polling function
result, err := p.pollingFunc(pollingCtx)
cancelPolling()
Expand Down
1 change: 0 additions & 1 deletion core/internal/testutils/pgtest/txdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
"github.com/smartcontractkit/chainlink/v2/core/store/dialects"
)

// TODO still need to import this for side effects
// txdb is a simplified version of https://github.com/DATA-DOG/go-txdb
//
// The original lib has various problems and is hard to understand because it
Expand Down

0 comments on commit 61106ec

Please sign in to comment.