1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-30 18:13:54 +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
}
// 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 {