@cryptotaxi247 / kubo / commits / 460967839

doc: comment

License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>

Brian Tiger Chow committed Dec 16, 2014 at 20:56 UTC 460967839eeea637411b8a97fbd9bf27f975689a
1 file changed +1 -2
exchange/bitswap/strategy/tasklist.go
+1 -2
@@ -43,8 +43,7 @@ func (tl *TaskList) Push(block u.Key, priority int, to peer.Peer) {
43 tl.taskmap[to.Key()+block] = task
44 }
45
46 -// Pop returns the next task to be performed by bitswap the task is then
47 -// removed from the list
46 +// Pop 'pops' the next task to be performed. Returns nil no task exists.
47 func (tl *TaskList) Pop() *Task {
48 var out *Task
49 for len(tl.tasks) > 0 {