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
44e13806
Commit
44e13806
authored
Nov 12, 2017
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Buffer response channel to prevent deadlock
License: MIT Signed-off-by:
Jeromy
<
jeromyj@gmail.com
>
parent
fc37b2f6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
session.go
session.go
+1
-1
No files found.
session.go
View file @
44e13806
...
...
@@ -119,7 +119,7 @@ type interestReq struct {
// block we received) this function will not be called, as the cid will likely
// still be in the interest cache.
func
(
s
*
Session
)
isLiveWant
(
c
*
cid
.
Cid
)
bool
{
resp
:=
make
(
chan
bool
)
resp
:=
make
(
chan
bool
,
1
)
s
.
interestReqs
<-
interestReq
{
c
:
c
,
resp
:
resp
,
...
...
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