1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-07-02 03:28:25 +08:00

doc: comment

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
This commit is contained in:
Brian Tiger Chow
2014-12-16 20:56:18 -08:00
committed by Juan Batiz-Benet
parent 10e970c0cf
commit 460967839e

View File

@ -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 {