Skip to content

Commit e82ddd9

Browse files
committed
p2p: correct a leftover trusted -> static
1 parent 413ace3 commit e82ddd9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

p2p/server.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ import (
1818
)
1919

2020
const (
21-
defaultDialTimeout = 10 * time.Second
22-
refreshPeersInterval = 30 * time.Second
23-
trustedPeerCheckInterval = 15 * time.Second
21+
defaultDialTimeout = 10 * time.Second
22+
refreshPeersInterval = 30 * time.Second
23+
staticPeerCheckInterval = 15 * time.Second
2424

2525
// This is the maximum number of inbound connection
2626
// that are allowed to linger between 'accepted' and
@@ -345,7 +345,7 @@ func (srv *Server) listenLoop() {
345345
// staticNodesLoop is responsible for periodically checking that static
346346
// connections are actually live, and requests dialing if not.
347347
func (srv *Server) staticNodesLoop() {
348-
tick := time.Tick(trustedPeerCheckInterval)
348+
tick := time.Tick(staticPeerCheckInterval)
349349
for {
350350
select {
351351
case <-srv.quit:

0 commit comments

Comments
 (0)