From 1b29f072af8838ff92389eb88c9492869b762a36 Mon Sep 17 00:00:00 2001 From: Alan Chen Date: Thu, 15 Jun 2017 16:45:38 +0800 Subject: [PATCH] eth: remove les server from protocol manager --- eth/backend.go | 1 - eth/handler.go | 2 -- 2 files changed, 3 deletions(-) diff --git a/eth/backend.go b/eth/backend.go index 6397923334..be2d032832 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -88,7 +88,6 @@ type Ethereum struct { func (s *Ethereum) AddLesServer(ls LesServer) { s.lesServer = ls - s.protocolManager.lesServer = ls } // New creates a new Ethereum object (including the diff --git a/eth/handler.go b/eth/handler.go index 8c2f5660df..1af9e755ba 100644 --- a/eth/handler.go +++ b/eth/handler.go @@ -87,8 +87,6 @@ type ProtocolManager struct { quitSync chan struct{} noMorePeers chan struct{} - lesServer LesServer - // wait group is used for graceful shutdowns during downloading // and processing wg sync.WaitGroup