Skip to content

Commit 9d42c81

Browse files
committed
revert++
1 parent 910d299 commit 9d42c81

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

block/internal/syncing/syncer.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ type Syncer struct {
9393
ctx context.Context
9494
cancel context.CancelFunc
9595
wg sync.WaitGroup
96-
closeOnce sync.Once
9796
hasCriticalError atomic.Bool
9897

9998
// P2P wait coordination
@@ -272,7 +271,7 @@ func (s *Syncer) Stop(ctx context.Context) error {
272271
}
273272

274273
s.logger.Info().Msg("syncer stopped")
275-
s.closeOnce.Do(func() { close(s.heightInCh) })
274+
close(s.heightInCh)
276275
s.cancel = nil
277276
return nil
278277
}

0 commit comments

Comments
 (0)