From: Vsevolod Stakhov Date: Sun, 29 Jan 2023 21:40:39 +0000 (+0000) Subject: [Minor] Use raw interface X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fheads%2Fvstakhov-fuzzy-cxx;p=rspamd.git [Minor] Use raw interface --- diff --git a/src/fuzzy_storage.cxx b/src/fuzzy_storage.cxx index 44bc49f69..2f6471de4 100644 --- a/src/fuzzy_storage.cxx +++ b/src/fuzzy_storage.cxx @@ -631,7 +631,8 @@ rspamd_fuzzy_process_updates_queue(struct rspamd_fuzzy_storage_ctx *ctx, auto cbdata = new rspamd_updates_cbdata{std::max(ctx->updates_pending->size(), std::size_t{1024}), ctx, source, final}; std::swap(ctx->updates_pending, cbdata->updates_pending); rspamd_fuzzy_backend_process_updates(ctx->backend, - cbdata->updates_pending, + cbdata->updates_pending->data(), + cbdata->updates_pending->size(), source, rspamd_fuzzy_updates_cb, (void *)cbdata); return true; }