mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-04 18:35:03 +00:00
allow setting maxPeers in handler
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
b135da2eac
commit
dce4c36f7b
1 changed files with 4 additions and 0 deletions
|
|
@ -425,6 +425,10 @@ func (h *handler) unregisterPeer(id string) {
|
|||
}
|
||||
}
|
||||
|
||||
func (h *handler) SetMaxPeers(maxPeers int) {
|
||||
h.maxPeers = maxPeers
|
||||
}
|
||||
|
||||
func (h *handler) Start(maxPeers int) {
|
||||
h.maxPeers = maxPeers
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue