mv comment
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Brian Tiger Chow committed
Dec 16, 2014 at 22:20 UTC
39d71931a895165443b6e66d3762c34988f7797d
1 file changed
+1
-1
exchange/bitswap/strategy/taskqueue.go
+1
-1
@@ -10,6 +10,7 @@ import (
10
// to help decide how to sort tasks (on add) and how to select
11
// tasks (on getnext). For now, we are assuming a dumb/nice strategy.
12
type taskQueue struct {
13
+ // TODO: make this into a priority queue
14
tasks []*task
15
taskmap map[string]*task
16
}
@@ -27,7 +28,6 @@ type task struct {
28
}
29
30
// Push currently adds a new task to the end of the list
30
-// TODO: make this into a priority queue
31
func (tl *taskQueue) Push(block u.Key, priority int, to peer.Peer) {
32
if task, ok := tl.taskmap[taskKey(to, block)]; ok {
33
// TODO: when priority queue is implemented,