mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
eth: fixup setMaxPeers
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
5046ea5626
commit
e66f3c4c26
1 changed files with 1 additions and 1 deletions
|
|
@ -411,7 +411,7 @@ func (s *Ethereum) Start() error {
|
|||
}
|
||||
|
||||
func (s *Ethereum) setMaxPeers(max int) {
|
||||
s.p2pServer.MaxPeers = max
|
||||
s.p2pServer.SetMaxPeers(max)
|
||||
s.handler.SetMaxPeers(max)
|
||||
s.dropper.SetMaxPeers(s.p2pServer.MaxDialedConns(), s.p2pServer.MaxInboundConns())
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue