Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use context.CancelFunc instead of func() #257

Merged
merged 1 commit into from
Oct 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ipldutil/traverser.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ type traverser struct {
blocksCount int
parentCtx context.Context
ctx context.Context
cancel func()
cancel context.CancelFunc
root ipld.Link
selector ipld.Node
visitor traversal.AdvVisitFn
Expand Down
2 changes: 1 addition & 1 deletion requestmanager/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ type AsyncLoader interface {
// to them.
type RequestManager struct {
ctx context.Context
cancel func()
cancel context.CancelFunc
messages chan requestManagerMessage
peerHandler PeerHandler
rc *responseCollector
Expand Down
2 changes: 1 addition & 1 deletion responsemanager/responsemanager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ func (frb *fakeResponseBuilder) AddNotifee(notifee notifications.Notifee) {
type testData struct {
ctx context.Context
t *testing.T
cancel func()
cancel context.CancelFunc
blockStore map[ipld.Link][]byte
persistence ipld.LinkSystem
blockChainLength int
Expand Down