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
7ace0239
Commit
7ace0239
authored
Nov 09, 2017
by
b00ris
Committed by
Felix Lange
Nov 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
les: fix channel assignment data race (#15441)
parent
0914d4e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
serverpool.go
les/serverpool.go
+3
-3
No files found.
les/serverpool.go
View file @
7ace0239
...
...
@@ -145,15 +145,15 @@ func (pool *serverPool) start(server *p2p.Server, topic discv5.Topic) {
pool
.
wg
.
Add
(
1
)
pool
.
loadNodes
()
go
pool
.
eventLoop
()
pool
.
checkDial
()
if
pool
.
server
.
DiscV5
!=
nil
{
pool
.
discSetPeriod
=
make
(
chan
time
.
Duration
,
1
)
pool
.
discNodes
=
make
(
chan
*
discv5
.
Node
,
100
)
pool
.
discLookups
=
make
(
chan
bool
,
100
)
go
pool
.
server
.
DiscV5
.
SearchTopic
(
pool
.
topic
,
pool
.
discSetPeriod
,
pool
.
discNodes
,
pool
.
discLookups
)
}
go
pool
.
eventLoop
()
pool
.
checkDial
()
}
// connect should be called upon any incoming connection. If the connection has been
...
...
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