10467: Use context instead of http.CloseNotifier to interrupt buffer waits.
[arvados.git] / services / keepstore / keepstore.go
index 69ff5659c15536d056dc448a72a0d33f0d1eca32..3fb86bc0f147182087cb845ebb4b250891507a27 100644 (file)
@@ -82,11 +82,6 @@ var KeepVM VolumeManager
 var pullq *WorkQueue
 var trashq *WorkQueue
 
-// TODO(twp): continue moving as much code as possible out of main
-// so it can be effectively tested. Esp. handling and postprocessing
-// of command line flags (identifying Keep volumes and initializing
-// permission arguments).
-
 func main() {
        deprecated.beforeFlagParse(theConfig)
 
@@ -197,7 +192,7 @@ func main() {
        if _, err := daemon.SdNotify("READY=1"); err != nil {
                log.Printf("Error notifying init daemon: %v", err)
        }
-       log.Println("listening at", listener.Addr)
+       log.Println("listening at", listener.Addr())
        srv := &http.Server{}
        srv.Serve(listener)
 }