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
46096783
Commit
46096783
authored
Dec 16, 2014
by
Brian Tiger Chow
Committed by
Juan Batiz-Benet
Dec 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: comment
License: MIT Signed-off-by:
Brian Tiger Chow
<
brian@perfmode.com
>
parent
10e970c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
exchange/bitswap/strategy/tasklist.go
exchange/bitswap/strategy/tasklist.go
+1
-2
No files found.
exchange/bitswap/strategy/tasklist.go
View file @
46096783
...
...
@@ -43,8 +43,7 @@ func (tl *TaskList) Push(block u.Key, priority int, to peer.Peer) {
tl
.
taskmap
[
to
.
Key
()
+
block
]
=
task
}
// Pop returns the next task to be performed by bitswap the task is then
// removed from the list
// Pop 'pops' the next task to be performed. Returns nil no task exists.
func
(
tl
*
TaskList
)
Pop
()
*
Task
{
var
out
*
Task
for
len
(
tl
.
tasks
)
>
0
{
...
...
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