X-Git-Url: http://git.pjr.cc/?p=nodejs-repoproxy.git;a=blobdiff_plain;f=proxy.js;fp=proxy.js;h=dabbdec80ea5f0e39d38b8bb2fa515188c5c531e;hp=65cf72648fbd982254a7be8f432612dc7e209b38;hb=04f3190a0bcc430af31917456a957ecc80eb160b;hpb=43d51752ca1aafe7212ee3805ba1b33e398c91ce 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);