adding the cleanup routines
[nodejs-repoproxy.git] / proxy.js
index 65cf726..dabbdec 100644 (file)
--- a/proxy.js
+++ b/proxy.js
@@ -2,6 +2,7 @@ var http = require("http");
 var config = require("./lib/config.js");
 var router = require("./lib/router.js");
 var cache = require("./lib/cache.js");
+var maintain = require("./lib/maintain.js");
 
 
 // first we load the config...
@@ -10,7 +11,7 @@ config.loadConfig("./repos.conf");
 
 
 console.log("Starting cache maintenance timer");
-cache.startTimer();
+maintain.startTimer();
 
 // next we start our main request loop
 http.createServer(router.routeRequest).listen(global.repoproxy.listenPort);