mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
les: grammar fix
This commit is contained in:
parent
5cf0cfd971
commit
094038bd3c
1 changed files with 3 additions and 3 deletions
|
|
@ -219,7 +219,7 @@ func (pool *serverPool) disconnect(entry *poolEntry) {
|
||||||
log.Debug("Disconnected old entry", "enode", entry.id)
|
log.Debug("Disconnected old entry", "enode", entry.id)
|
||||||
req := &disconnReq{entry: entry, stopped: stopped, done: make(chan struct{})}
|
req := &disconnReq{entry: entry, stopped: stopped, done: make(chan struct{})}
|
||||||
|
|
||||||
// Block until disconnection request be served.
|
// Block until disconnection request is served.
|
||||||
pool.disconnCh <- req
|
pool.disconnCh <- req
|
||||||
<-req.done
|
<-req.done
|
||||||
}
|
}
|
||||||
|
|
@ -384,13 +384,13 @@ func (pool *serverPool) eventLoop() {
|
||||||
close(pool.discSetPeriod)
|
close(pool.discSetPeriod)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Spawn a goroutine to close the disconnCh until all connections are disconnected.
|
// Spawn a goroutine to close the disconnCh after all connections are disconnected.
|
||||||
go func() {
|
go func() {
|
||||||
pool.connWg.Wait()
|
pool.connWg.Wait()
|
||||||
close(pool.disconnCh)
|
close(pool.disconnCh)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
// Handle all remain disconnection requests before exit.
|
// Handle all remaining disconnection requests before exit.
|
||||||
for req := range pool.disconnCh {
|
for req := range pool.disconnCh {
|
||||||
disconnect(req, true)
|
disconnect(req, true)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue