mirror of
https://github.com/arnaucube/go-ethereum.git
synced 2026-02-28 14:06:45 +01:00
p2p: correct a leftover trusted -> static
This commit is contained in:
@@ -18,9 +18,9 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
defaultDialTimeout = 10 * time.Second
|
||||
refreshPeersInterval = 30 * time.Second
|
||||
trustedPeerCheckInterval = 15 * time.Second
|
||||
defaultDialTimeout = 10 * time.Second
|
||||
refreshPeersInterval = 30 * time.Second
|
||||
staticPeerCheckInterval = 15 * time.Second
|
||||
|
||||
// This is the maximum number of inbound connection
|
||||
// that are allowed to linger between 'accepted' and
|
||||
@@ -345,7 +345,7 @@ func (srv *Server) listenLoop() {
|
||||
// staticNodesLoop is responsible for periodically checking that static
|
||||
// connections are actually live, and requests dialing if not.
|
||||
func (srv *Server) staticNodesLoop() {
|
||||
tick := time.Tick(trustedPeerCheckInterval)
|
||||
tick := time.Tick(staticPeerCheckInterval)
|
||||
for {
|
||||
select {
|
||||
case <-srv.quit:
|
||||
|
||||
Reference in New Issue
Block a user