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:

committed by
Juan Batiz-Benet

parent
10e970c0cf
commit
460967839e
@ -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 {
|
||||
|
Reference in New Issue
Block a user