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

eth/downloader, eth/filters: use defer to call Unsubscribe #28762

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

ucwong
Copy link
Contributor

@ucwong ucwong commented Jan 4, 2024

No description provided.

@fjl fjl changed the title eth/downloader,filters : defer unsubscribe eth/downloader, eth/filters : use defer to call Unsubscribe Jan 4, 2024
@fjl fjl added this to the 1.13.8 milestone Jan 4, 2024
@fjl fjl changed the title eth/downloader, eth/filters : use defer to call Unsubscribe eth/downloader, eth/filters: use defer to call Unsubscribe Jan 5, 2024
@fjl fjl merged commit 877d094 into ethereum:master Jan 5, 2024
2 checks passed
@@ -267,6 +266,7 @@ func (api *FilterAPI) Logs(ctx context.Context, crit FilterCriteria) (*rpc.Subsc
if err != nil {
return nil, err
}
defer logsSub.Unsubscribe()
Copy link
Contributor

Choose a reason for hiding this comment

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

should this move to the next go func?

@MariusVanDerWijden MariusVanDerWijden modified the milestones: 1.13.8, 1.13.9 Jan 10, 2024
Dergarcon pushed a commit to specialmechanisms/mev-geth-0x2mev that referenced this pull request Jan 31, 2024
maoueh pushed a commit to streamingfast/go-ethereum that referenced this pull request Apr 29, 2024
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.

4 participants