Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
329eb1cd
Commit
329eb1cd
authored
Oct 18, 2017
by
Jeromy Johnson
Committed by
GitHub
Oct 18, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4316 from ipfs/fix/bitswap-active-peers
filter out "" from active peers in bitswap sessions
parents
08733c2b
37296d39
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
exchange/bitswap/session.go
exchange/bitswap/session.go
+3
-1
No files found.
exchange/bitswap/session.go
View file @
329eb1cd
...
...
@@ -159,7 +159,9 @@ func (s *Session) run(ctx context.Context) {
case
blk
:=
<-
s
.
incoming
:
s
.
tick
.
Stop
()
s
.
addActivePeer
(
blk
.
from
)
if
blk
.
from
!=
""
{
s
.
addActivePeer
(
blk
.
from
)
}
s
.
receiveBlock
(
ctx
,
blk
.
blk
)
...
...
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