Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
e82ddd91
Commit
e82ddd91
authored
Apr 30, 2015
by
Péter Szilágyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
p2p: correct a leftover trusted -> static
parent
413ace37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
server.go
p2p/server.go
+4
-4
No files found.
p2p/server.go
View file @
e82ddd91
...
...
@@ -18,9 +18,9 @@ import (
)
const
(
defaultDialTimeout
=
10
*
time
.
Second
refreshPeersInterval
=
30
*
time
.
Second
trusted
PeerCheckInterval
=
15
*
time
.
Second
defaultDialTimeout
=
10
*
time
.
Second
refreshPeersInterval
=
30
*
time
.
Second
static
PeerCheckInterval
=
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
(
trusted
PeerCheckInterval
)
tick
:=
time
.
Tick
(
static
PeerCheckInterval
)
for
{
select
{
case
<-
srv
.
quit
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment