mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
beacon/light/request: fix missing bracket
This commit is contained in:
parent
7fa0a003d3
commit
674089a686
1 changed files with 9 additions and 8 deletions
|
|
@ -203,14 +203,15 @@ func (s *Scheduler) syncLoop() {
|
||||||
s.lock.Lock()
|
s.lock.Lock()
|
||||||
s.processRound()
|
s.processRound()
|
||||||
s.lock.Unlock()
|
s.lock.Unlock()
|
||||||
for triggered := false; !triggered; {
|
for triggered := false; !triggered; {
|
||||||
select {
|
select {
|
||||||
case stop := <-s.stopCh:
|
case stop := <-s.stopCh:
|
||||||
close(stop)
|
close(stop)
|
||||||
return
|
return
|
||||||
case <-s.triggerCh:
|
case <-s.triggerCh:
|
||||||
triggered = true
|
triggered = true
|
||||||
case <-s.testWaitCh:
|
case <-s.testWaitCh:
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue