3762: create NewWorkQueue instances of pullq and trashq in handers_test and remove...
[arvados.git] / services / keepstore / handlers.go
index c7559a1bee313783372cfa9e88f918618459dae5..f120f05dc454086580c96df6d9960e9cf97491c3 100644 (file)
@@ -460,10 +460,6 @@ func PullHandler(resp http.ResponseWriter, req *http.Request) {
        for _, p := range pr {
                plist.PushBack(p)
        }
-
-       if pullq == nil {
-               pullq = NewWorkQueue()
-       }
        pullq.ReplaceQueue(plist)
 }
 
@@ -498,10 +494,6 @@ func TrashHandler(resp http.ResponseWriter, req *http.Request) {
        for _, t := range trash {
                tlist.PushBack(t)
        }
-
-       if trashq == nil {
-               trashq = NewWorkQueue()
-       }
        trashq.ReplaceQueue(tlist)
 }