Commit 46096783 authored by Brian Tiger Chow's avatar Brian Tiger Chow Committed by Juan Batiz-Benet

doc: comment

License: MIT
Signed-off-by: default avatarBrian Tiger Chow <brian@perfmode.com>
parent 10e970c0
...@@ -43,8 +43,7 @@ func (tl *TaskList) Push(block u.Key, priority int, to peer.Peer) { ...@@ -43,8 +43,7 @@ func (tl *TaskList) Push(block u.Key, priority int, to peer.Peer) {
tl.taskmap[to.Key()+block] = task tl.taskmap[to.Key()+block] = task
} }
// Pop returns the next task to be performed by bitswap the task is then // Pop 'pops' the next task to be performed. Returns nil no task exists.
// removed from the list
func (tl *TaskList) Pop() *Task { func (tl *TaskList) Pop() *Task {
var out *Task var out *Task
for len(tl.tasks) > 0 { for len(tl.tasks) > 0 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment