mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-14 20:16:36 +00:00
p2p: correct a leftover trusted -> static
This commit is contained in:
parent
413ace37d3
commit
e82ddd9198
1 changed files with 4 additions and 4 deletions
|
|
@ -18,9 +18,9 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
defaultDialTimeout = 10 * time.Second
|
defaultDialTimeout = 10 * time.Second
|
||||||
refreshPeersInterval = 30 * time.Second
|
refreshPeersInterval = 30 * time.Second
|
||||||
trustedPeerCheckInterval = 15 * time.Second
|
staticPeerCheckInterval = 15 * time.Second
|
||||||
|
|
||||||
// This is the maximum number of inbound connection
|
// This is the maximum number of inbound connection
|
||||||
// that are allowed to linger between 'accepted' and
|
// that are allowed to linger between 'accepted' and
|
||||||
|
|
@ -345,7 +345,7 @@ func (srv *Server) listenLoop() {
|
||||||
// staticNodesLoop is responsible for periodically checking that static
|
// staticNodesLoop is responsible for periodically checking that static
|
||||||
// connections are actually live, and requests dialing if not.
|
// connections are actually live, and requests dialing if not.
|
||||||
func (srv *Server) staticNodesLoop() {
|
func (srv *Server) staticNodesLoop() {
|
||||||
tick := time.Tick(trustedPeerCheckInterval)
|
tick := time.Tick(staticPeerCheckInterval)
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-srv.quit:
|
case <-srv.quit:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue