Commit fade09a7 authored by Alan Chen's avatar Alan Chen Committed by Felix Lange

eth: remove les server from protocol manager (#14625)

parent 335abdce
...@@ -88,7 +88,6 @@ type Ethereum struct { ...@@ -88,7 +88,6 @@ type Ethereum struct {
func (s *Ethereum) AddLesServer(ls LesServer) { func (s *Ethereum) AddLesServer(ls LesServer) {
s.lesServer = ls s.lesServer = ls
s.protocolManager.lesServer = ls
} }
// New creates a new Ethereum object (including the // New creates a new Ethereum object (including the
......
...@@ -87,8 +87,6 @@ type ProtocolManager struct { ...@@ -87,8 +87,6 @@ type ProtocolManager struct {
quitSync chan struct{} quitSync chan struct{}
noMorePeers chan struct{} noMorePeers chan struct{}
lesServer LesServer
// wait group is used for graceful shutdowns during downloading // wait group is used for graceful shutdowns during downloading
// and processing // and processing
wg sync.WaitGroup wg sync.WaitGroup
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment