diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-19 09:56:12 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-19 09:56:12 +0100 |
commit | a59ceca26167101ac0f5e048f8bb610a6b358c2c (patch) | |
tree | db4533e1d46cca6978c3e8714ba5c8ce7dc965a7 /src/libstat/stat_config.c | |
parent | 04e76dde9e34ba53f1d7790d7aec791eddfd7342 (diff) | |
download | rspamd-a59ceca26167101ac0f5e048f8bb610a6b358c2c.tar.gz rspamd-a59ceca26167101ac0f5e048f8bb610a6b358c2c.zip |
[Minor] Another try to fix races in redis stats
Issue: #3088
Diffstat (limited to 'src/libstat/stat_config.c')
-rw-r--r-- | src/libstat/stat_config.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstat/stat_config.c b/src/libstat/stat_config.c index bc4c28b5d..17d0fdcc7 100644 --- a/src/libstat/stat_config.c +++ b/src/libstat/stat_config.c @@ -559,7 +559,8 @@ rspamd_stat_ctx_register_async (rspamd_stat_async_handler handler, * fast as possible */ elt->timer_ev.data = elt; - ev_timer_init (&elt->timer_ev, rspamd_async_elt_on_timer, 0.0, 0.0); + ev_timer_init (&elt->timer_ev, rspamd_async_elt_on_timer, + 0.1, 0.0); ev_timer_start (st_ctx->event_loop, &elt->timer_ev); } else { |