Skip to content

Conversation

phrwlk
Copy link
Contributor

@phrwlk phrwlk commented Aug 14, 2025

  • Add defer ticker.Stop() after time.NewTicker in Syncer.run.
  • Aligns with project pattern in other long-running loops.
  • Prevents potential goroutine/resource leak when the service stops.

@phrwlk phrwlk requested a review from rjl493456442 as a code owner August 14, 2025 18:18
@rjl493456442 rjl493456442 changed the title fix(eth/syncer):Stop ticker in Syncer.run to prevent resource leak eth/syncer: stop ticker to prevent resource leak Aug 19, 2025
@rjl493456442 rjl493456442 added this to the 1.16.3 milestone Aug 19, 2025
@rjl493456442 rjl493456442 merged commit 7cc0137 into ethereum:master Aug 19, 2025
2 of 3 checks passed
gballet pushed a commit to gballet/go-ethereum that referenced this pull request Sep 11, 2025
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