We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 910d299 commit 9d42c81Copy full SHA for 9d42c81
1 file changed
block/internal/syncing/syncer.go
@@ -93,7 +93,6 @@ type Syncer struct {
93
ctx context.Context
94
cancel context.CancelFunc
95
wg sync.WaitGroup
96
- closeOnce sync.Once
97
hasCriticalError atomic.Bool
98
99
// P2P wait coordination
@@ -272,7 +271,7 @@ func (s *Syncer) Stop(ctx context.Context) error {
272
271
}
273
274
s.logger.Info().Msg("syncer stopped")
275
- s.closeOnce.Do(func() { close(s.heightInCh) })
+ close(s.heightInCh)
276
s.cancel = nil
277
return nil
278
0 commit comments