aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-05-01 00:34:33 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-05-01 00:34:33 +0800
commite82ddd9198f6c26f9aeba603d2e0fadd5a60bf96 (patch)
tree2033dec7665d88c697ce164efe3ec1d41cc1ed9e
parent413ace37d3ba13a551f60e4089f2e0070c607970 (diff)
downloadgo-tangerine-e82ddd9198f6c26f9aeba603d2e0fadd5a60bf96.tar.gz
go-tangerine-e82ddd9198f6c26f9aeba603d2e0fadd5a60bf96.tar.zst
go-tangerine-e82ddd9198f6c26f9aeba603d2e0fadd5a60bf96.zip
p2p: correct a leftover trusted -> static
-rw-r--r--p2p/server.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/p2p/server.go b/p2p/server.go
index 091bf0b2a..546b22744 100644
--- a/p2p/server.go
+++ b/p2p/server.go
@@ -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: