eth/syncer: fix negative wg

This commit is contained in:
Gary Rong 2025-07-09 11:10:18 +08:00
parent 9402641ee9
commit 9fb9be5aa1

View file

@ -145,6 +145,7 @@ func (s *Syncer) run() {
// Start launches the synchronization service. // Start launches the synchronization service.
func (s *Syncer) Start() error { func (s *Syncer) Start() error {
s.wg.Add(1)
go s.run() go s.run()
if s.target == (common.Hash{}) { if s.target == (common.Hash{}) {
return nil return nil