From b04eb83c2f6012c56abd91c50a7b720903947c74 Mon Sep 17 00:00:00 2001 From: Evgeny Danienko <6655321@bk.ru> Date: Wed, 8 Nov 2017 13:55:03 +0300 Subject: [PATCH] les: remove unused code and comment --- les/handler.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/les/handler.go b/les/handler.go index caade0bef012..df7eb6af51b3 100644 --- a/les/handler.go +++ b/les/handler.go @@ -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")