diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-20 16:17:24 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-20 16:17:24 +0000 |
commit | 13cb93001a2cb7dbf7db85b25ac22558da4f610b (patch) | |
tree | 468ad6403e5649017593b3c8ae960132759a7045 /src/libstat/backends | |
parent | a42332ca48be149ed950ed9ccaf81d58783a13c9 (diff) | |
download | rspamd-13cb93001a2cb7dbf7db85b25ac22558da4f610b.tar.gz rspamd-13cb93001a2cb7dbf7db85b25ac22558da4f610b.zip |
Fix upstreams usage
Diffstat (limited to 'src/libstat/backends')
-rw-r--r-- | src/libstat/backends/redis.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstat/backends/redis.c b/src/libstat/backends/redis.c index 39d7dc21a..66bad4471 100644 --- a/src/libstat/backends/redis.c +++ b/src/libstat/backends/redis.c @@ -319,7 +319,7 @@ rspamd_redis_init (struct rspamd_stat_ctx *ctx, struct rspamd_config *cfg) continue; } else { - backend->read_servers = rspamd_upstreams_create (); + backend->read_servers = rspamd_upstreams_create (cfg->ups_ctx); if (!rspamd_upstreams_from_ucl (backend->read_servers, elt, REDIS_DEFAULT_PORT, NULL)) { msg_err ("statfile %s cannot read servers configuration", @@ -337,7 +337,7 @@ rspamd_redis_init (struct rspamd_stat_ctx *ctx, struct rspamd_config *cfg) continue; } else { - backend->write_servers = rspamd_upstreams_create (); + backend->write_servers = rspamd_upstreams_create (cfg->ups_ctx); if (!rspamd_upstreams_from_ucl (backend->write_servers, elt, REDIS_DEFAULT_PORT, NULL)) { msg_err ("statfile %s cannot write servers configuration", |