X-Git-Url: http://git.pjr.cc/?a=blobdiff_plain;f=proxy.js;h=dabbdec80ea5f0e39d38b8bb2fa515188c5c531e;hb=efd3942c83ad1235b32f983f53f89c984ef81db4;hp=65cf72648fbd982254a7be8f432612dc7e209b38;hpb=c3e6676d533e875b020d231075aac04e4b885677;p=nodejs-repoproxy.git diff --git a/proxy.js b/proxy.js index 65cf726..dabbdec 100644 --- 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);