Skip to content

refactor: replace context.WithCancel with t.Context#3383

Merged
MarcoPolo merged 1 commit intolibp2p:masterfrom
cargoedit:master
Sep 18, 2025
Merged

refactor: replace context.WithCancel with t.Context#3383
MarcoPolo merged 1 commit intolibp2p:masterfrom
cargoedit:master

Conversation

@cargoedit
Copy link
Contributor

Optimize code using a more concise and modern approach.

@MarcoPolo MarcoPolo self-requested a review September 17, 2025 22:14
Copy link
Collaborator

@MarcoPolo MarcoPolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error: p2p/net/gostream/gostream_test.go:5:2: "context" imported and not used

You probably need to gofmt these files

Signed-off-by: cargoedit <cargoedit@outlook.com>
@cargoedit
Copy link
Contributor Author

Error: p2p/net/gostream/gostream_test.go:5:2: "context" imported and not used

You probably need to gofmt these files

Oh. Indeed. Modified. @MarcoPolo Please review again when youn have time. Thanks!

@MarcoPolo MarcoPolo merged commit c8e06bb into libp2p:master Sep 18, 2025
8 of 9 checks passed
@MarcoPolo
Copy link
Collaborator

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants