les: remove unused code and comment

This commit is contained in:
Evgeny Danienko 2017-11-08 13:55:03 +03:00
parent a231fdbf79
commit b04eb83c2f
No known key found for this signature in database
GPG key ID: BC8C34D8B45BECBF

View file

@ -115,7 +115,6 @@ type ProtocolManager struct {
// channels for fetcher, syncer, txsyncLoop
newPeerCh chan *peer
isClosed *int32
quitSync chan struct{}
noMorePeers chan struct{}
@ -243,7 +242,7 @@ func (pm *ProtocolManager) Stop() {
// will exit when they try to register.
pm.peers.Close()
// Wait for any process action. Wait should be executed after all pm.wg.Add()
// Wait for any process action
pm.wg.Wait()
log.Info("Light Ethereum protocol stopped")