summaryrefslogtreecommitdiff
path: root/src/rhimportd/ctrlWeb.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-04-02 15:35:41 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-04-02 15:35:41 (GMT)
commit24420034428f6bafc41b34e9b8a6316b4f2aa65e (patch)
treef1daefafe8148f60cce4581c9e35626c8c7b2c28 /src/rhimportd/ctrlWeb.go
parentc69154b5c1e35ef038f00661e66fcb90113891bf (diff)
upload cleaner works now
Diffstat (limited to 'src/rhimportd/ctrlWeb.go')
-rw-r--r--src/rhimportd/ctrlWeb.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rhimportd/ctrlWeb.go b/src/rhimportd/ctrlWeb.go
index 6ea641b..6bee325 100644
--- a/src/rhimportd/ctrlWeb.go
+++ b/src/rhimportd/ctrlWeb.go
@@ -44,13 +44,13 @@ func (self webHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
self.H(self.Config, self.DBChan, self.SessionStoreChan, self.trusted, w, r)
}
-func StartControlWeb(addr string, conf *rhimport.Config, db *rddb.DBChan, sessions *rhimport.SessionStoreChan) {
+func StartControlWeb(addr string, uploadMaxAge time.Duration, conf *rhimport.Config, db *rddb.DBChan, sessions *rhimport.SessionStoreChan) {
// http.Handle("/trusted/simple", webHandler{conf, db, sessions, true, webSimpleHandler})
http.Handle("/public/simple", webHandler{conf, db, sessions, false, webSimpleHandler})
http.Handle("/public/socket", webHandler{conf, db, sessions, false, webSocketHandler})
http.Handle("/public/upload", webHandler{conf, db, sessions, false, webUploadHandler})
- go webUploadCleaner(conf)
+ go webUploadCleaner(conf, uploadMaxAge)
rhl.Println("web-ctrl: listening on", addr)
server := &http.Server{Addr: addr, ReadTimeout: 60 * time.Second, WriteTimeout: 60 * time.Second}