"bytes"
"flag"
"fmt"
+ "git.curoverse.com/arvados.git/sdk/go/keepclient"
"io/ioutil"
"log"
"net"
}
// Initialize Pull queue and worker
+ keepClient := keepclient.KeepClient{
+ Arvados: nil,
+ Want_replicas: 1,
+ Using_proxy: true,
+ Client: &http.Client{},
+ }
+
+ // Initialize the pullq and worker
pullq = NewWorkQueue()
- go RunPullWorker(pullq.NextItem)
+ go RunPullWorker(pullq, keepClient)
+
+ // Initialize the trashq and worker
+ trashq = NewWorkQueue()
+ go RunTrashWorker(trashq)
// Shut down the server gracefully (by closing the listener)
// if SIGTERM is received.