"%s\r\n",
cmd_len, command,
prefix_len, prefix,
- l0, n0, l1, n1);
+ l0, n0,
+ l1, n1);
}
ret = redisAsyncFormattedCommand (rt->redis, NULL, NULL,
return NULL;
}
- if (rt->ctx->new_schema && rt->ctx->expiry > 0) {
- out->len = 0;
- l1 = rspamd_snprintf (n1, sizeof (n1), "%d",
- rt->ctx->expiry);
-
- rspamd_printf_fstring (&out, ""
- "*3\r\n"
- "$6\r\n"
- "EXPIRE\r\n"
- "$%d\r\n"
- "%s\r\n"
- "$%d\r\n"
- "%s\r\n",
- l0, n0,
- l1, n1);
- redisAsyncFormattedCommand (rt->redis, NULL, NULL,
- out->str, out->len);
- out->len = 0;
- }
-
if (rt->ctx->store_tokens) {
if (!rt->ctx->new_schema) {
n0, (size_t)l0);
}
+ if (rt->ctx->new_schema && rt->ctx->expiry > 0) {
+ out->len = 0;
+ l1 = rspamd_snprintf (n1, sizeof (n1), "%d",
+ rt->ctx->expiry);
+
+ rspamd_printf_fstring (&out, ""
+ "*3\r\n"
+ "$6\r\n"
+ "EXPIRE\r\n"
+ "$%d\r\n"
+ "%s\r\n"
+ "$%d\r\n"
+ "%s\r\n",
+ l0, n0,
+ l1, n1);
+ redisAsyncFormattedCommand (rt->redis, NULL, NULL,
+ out->str, out->len);
+ }
out->len = 0;
}