summaryrefslogtreecommitdiffstats
path: root/src/lua_worker.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2012-09-19 20:29:58 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2012-09-19 20:29:58 +0400
commit91d183b8f4719ecc6b339cc3e8d9239bf7594e30 (patch)
treee4a548ed5570d425d87ac0aa684900179eaabe4e /src/lua_worker.c
parent1bdd1f05773d1f16f4fc271e09a691a1750e0ed5 (diff)
downloadrspamd-91d183b8f4719ecc6b339cc3e8d9239bf7594e30.tar.gz
rspamd-91d183b8f4719ecc6b339cc3e8d9239bf7594e30.zip
Avoid global variables in map logic.
* Add support of simple maps like '/path/to/file' as it seems to be more comfortable than 'file:///...'
Diffstat (limited to 'src/lua_worker.c')
-rw-r--r--src/lua_worker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua_worker.c b/src/lua_worker.c
index 51066624b..c75d275a6 100644
--- a/src/lua_worker.c
+++ b/src/lua_worker.c
@@ -493,7 +493,7 @@ start_lua_worker (struct rspamd_worker *worker)
}
/* Maps events */
- start_map_watch (ctx->ev_base);
+ start_map_watch (worker->srv->cfg, ctx->ev_base);
event_base_loop (ctx->ev_base, 0);
luaL_unref (L, LUA_REGISTRYINDEX, ctx->cbref_accept);