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-bitswap
Commits
cc9028d1
Commit
cc9028d1
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
bec48890
42f8fed0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
session.go
session.go
+3
-1
No files found.
session.go
View file @
cc9028d1
...
...
@@ -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