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
1e10d28b
Commit
1e10d28b
authored
Aug 22, 2019
by
Dirk McCormick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: remove extraneous go routine
parent
e9661edc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
sessionmanager/sessionmanager.go
sessionmanager/sessionmanager.go
+1
-7
No files found.
sessionmanager/sessionmanager.go
View file @
1e10d28b
...
...
@@ -119,15 +119,9 @@ func (sm *SessionManager) ReceiveFrom(from peer.ID, ks []cid.Cid) {
sm
.
sessLk
.
Lock
()
defer
sm
.
sessLk
.
Unlock
()
var
wg
sync
.
WaitGroup
for
_
,
s
:=
range
sm
.
sessions
{
wg
.
Add
(
1
)
go
func
()
{
defer
wg
.
Done
()
s
.
session
.
ReceiveFrom
(
from
,
ks
)
}()
s
.
session
.
ReceiveFrom
(
from
,
ks
)
}
wg
.
Wait
()
}
// IsWanted indicates whether any of the sessions are waiting to receive
...
...
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