diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-21 13:46:01 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-22 10:57:29 +0100 |
commit | 562fac4c3c2045cc3a65f0bb37db0a7b2d47c6cb (patch) | |
tree | e52c5549f4574482854c4ef9084adc4f22ee68ee /src/controller.c | |
parent | d432fe8292abdceea2bae0b4a07ea5256247f92d (diff) | |
download | rspamd-562fac4c3c2045cc3a65f0bb37db0a7b2d47c6cb.tar.gz rspamd-562fac4c3c2045cc3a65f0bb37db0a7b2d47c6cb.zip |
[Minor] Load hyperscan cache in controller as well
Diffstat (limited to 'src/controller.c')
-rw-r--r-- | src/controller.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/controller.c b/src/controller.c index f24269999..46c02d47c 100644 --- a/src/controller.c +++ b/src/controller.c @@ -3910,6 +3910,13 @@ start_controller_worker (struct rspamd_worker *worker) rspamd_lua_run_postloads (ctx->cfg->lua_state, ctx->cfg, ctx->event_loop, worker); +#ifdef WITH_HYPERSCAN + rspamd_control_worker_add_cmd_handler (worker, + RSPAMD_CONTROL_HYPERSCAN_LOADED, + rspamd_worker_hyperscan_ready, + NULL); +#endif + /* Start event loop */ ev_loop (ctx->event_loop, 0); rspamd_worker_block_signals (); |