aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/fuzzy_check.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-21 13:31:26 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-21 13:31:26 +0000
commitf3ac40859446c3f6829d52cfd0ae8066e5b5b2c8 (patch)
tree9eebef9b8f6dc2a2157cbd53170f6bd696ca6a01 /src/plugins/fuzzy_check.c
parent19fdaf580a3746442173f10da662629bdc1b62b9 (diff)
downloadrspamd-f3ac40859446c3f6829d52cfd0ae8066e5b5b2c8.tar.gz
rspamd-f3ac40859446c3f6829d52cfd0ae8066e5b5b2c8.zip
Use new rotation logic in the code
Diffstat (limited to 'src/plugins/fuzzy_check.c')
-rw-r--r--src/plugins/fuzzy_check.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c
index c6db5e016..7e03009f9 100644
--- a/src/plugins/fuzzy_check.c
+++ b/src/plugins/fuzzy_check.c
@@ -1347,7 +1347,8 @@ register_fuzzy_client_call (struct rspamd_task *task,
gint sock;
/* Get upstream */
- selected = rspamd_upstream_get (rule->servers, RSPAMD_UPSTREAM_ROUND_ROBIN);
+ selected = rspamd_upstream_get (rule->servers, RSPAMD_UPSTREAM_ROUND_ROBIN,
+ NULL, 0);
if (selected) {
if ((sock = rspamd_inet_address_connect (rspamd_upstream_addr (selected),
SOCK_DGRAM, TRUE)) == -1) {
@@ -1434,7 +1435,7 @@ register_fuzzy_controller_call (struct rspamd_http_connection_entry *entry,
/* Get upstream */
while ((selected = rspamd_upstream_get (rule->servers,
- RSPAMD_UPSTREAM_SEQUENTIAL))) {
+ RSPAMD_UPSTREAM_SEQUENTIAL, NULL, 0))) {
/* Create UDP socket */
if ((sock = rspamd_inet_address_connect (rspamd_upstream_addr (selected),
SOCK_DGRAM, TRUE)) == -1) {