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
194f8988
Commit
194f8988
authored
Jul 06, 2017
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
address CR
License: MIT Signed-off-by:
Jeromy
<
jeromyj@gmail.com
>
parent
110b03f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
session.go
session.go
+2
-1
session_test.go
session_test.go
+1
-1
No files found.
session.go
View file @
194f8988
...
...
@@ -5,11 +5,11 @@ import (
"time"
notifications
"github.com/ipfs/go-ipfs/exchange/bitswap/notifications"
blocks
"gx/ipfs/QmXxGS5QsUxpR3iqL5DjmsYPHR1Yz74siRQ4ChJqWFosMh/go-block-format"
logging
"gx/ipfs/QmSpJByNKFX1sCsHBEp3R73FL4NF6FnQTEGyNAXHm2GS52/go-log"
lru
"gx/ipfs/QmVYxfoJQiZijTgPNHCHgHELvQpbsJNTg6Crmc3dQkj3yy/golang-lru"
loggables
"gx/ipfs/QmVesPmqbPp7xRGyY96tnBwzDtVV1nqv4SCVxo5zCqKyH8/go-libp2p-loggables"
blocks
"gx/ipfs/QmXxGS5QsUxpR3iqL5DjmsYPHR1Yz74siRQ4ChJqWFosMh/go-block-format"
cid
"gx/ipfs/Qma4RJSuh7mMeJQYCqMbKzekn6EwBo7HEs5AQYjVRMQATB/go-cid"
peer
"gx/ipfs/QmdS9KpbDyPrieswibZhkod1oXqRwZJrUPzxCofAMWpFGq/go-libp2p-peer"
)
...
...
@@ -191,6 +191,7 @@ func (s *Session) run(ctx context.Context) {
_
,
ok
:=
s
.
liveWants
[
lwchk
.
c
.
KeyString
()]
lwchk
.
resp
<-
ok
case
<-
ctx
.
Done
()
:
s
.
tick
.
Stop
()
return
}
}
...
...
session_test.go
View file @
194f8988
...
...
@@ -7,8 +7,8 @@ import (
"time"
blocksutil
"github.com/ipfs/go-ipfs/blocks/blocksutil"
blocks
"gx/ipfs/QmXxGS5QsUxpR3iqL5DjmsYPHR1Yz74siRQ4ChJqWFosMh/go-block-format"
blocks
"gx/ipfs/QmXxGS5QsUxpR3iqL5DjmsYPHR1Yz74siRQ4ChJqWFosMh/go-block-format"
cid
"gx/ipfs/Qma4RJSuh7mMeJQYCqMbKzekn6EwBo7HEs5AQYjVRMQATB/go-cid"
)
...
...
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