+ // Initialize Pull queue and worker
+ arv, err := arvadosclient.MakeArvadosClient()
+ if err != nil {
+ log.Fatalf("MakeArvadosClient: %s", err)
+ }
+ keepClient := &keepclient.KeepClient{
+ Arvados: &arv,
+ Want_replicas: 1,
+ Client: &http.Client{},
+ }
+
+ // Initialize the pullq and worker
+ pullq = NewWorkQueue()
+ go RunPullWorker(pullq, keepClient)
+
+ // Initialize the trashq and worker
+ trashq = NewWorkQueue()
+ go RunTrashWorker(trashq)
+
+ // Start emptyTrash goroutine
+ doneEmptyingTrash := make(chan bool)
+ go emptyTrash(doneEmptyingTrash, trashCheckInterval)
+