commit 79b0b67: [Minor] Remove sequential algorithm as it is not actually a rotation alg
Vsevolod Stakhov
vsevolod at highsecure.ru
Tue Jan 18 21:28:04 UTC 2022
Author: Vsevolod Stakhov
Date: 2022-01-18 21:26:27 +0000
URL: https://github.com/rspamd/rspamd/commit/79b0b67f2d3de46490876cfebf5dd0176bd025e1 (HEAD -> master)
[Minor] Remove sequential algorithm as it is not actually a rotation alg
Sequential rotation was used just to rotate all upstreams in the loop (e.g.
when you need to do some action for all upstreams). Allowing to specify it as
a user defined algorithm was a mistake as it breaks upstreams API expectations.
See #4043
---
src/libutil/upstream.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/libutil/upstream.c b/src/libutil/upstream.c
index 578efd0f4..835785acb 100644
--- a/src/libutil/upstream.c
+++ b/src/libutil/upstream.c
@@ -1241,10 +1241,6 @@ rspamd_upstreams_parse_line_len (struct upstream_list *ups,
ups->rot_alg = RSPAMD_UPSTREAM_HASHED;
p += sizeof ("hash:") - 1;
}
- else if (RSPAMD_LEN_CHECK_STARTS_WITH(p, len, "sequential:")) {
- ups->rot_alg = RSPAMD_UPSTREAM_SEQUENTIAL;
- p += sizeof ("sequential:") - 1;
- }
while (p < end) {
span_len = rspamd_memcspn (p, separators, end - p);
More information about the Commits
mailing list