提交 46096783 作者: Brian Tiger Chow 提交者: Juan Batiz-Benet

doc: comment

License: MIT
Signed-off-by: 's avatarBrian Tiger Chow <brian@perfmode.com>
上级 10e970c0
......@@ -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 {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论