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)
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)
}