aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/protocol.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-06-24 14:48:17 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-06-24 14:48:17 +0100
commit655afcbbe99a841275ba34534f9300a67fede996 (patch)
treeb4b807aa0ce73c5c530a0ce8c7b72638acf0f417 /src/libserver/protocol.h
parent2f13954449f33553178be3101229d59bdbdfd094 (diff)
downloadrspamd-655afcbbe99a841275ba34534f9300a67fede996.tar.gz
rspamd-655afcbbe99a841275ba34534f9300a67fede996.zip
[Feature] Support metrics command in normal/proxy workers
Diffstat (limited to 'src/libserver/protocol.h')
-rw-r--r--src/libserver/protocol.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/protocol.h b/src/libserver/protocol.h
index 94fbcbf04..9d2b985da 100644
--- a/src/libserver/protocol.h
+++ b/src/libserver/protocol.h
@@ -51,7 +51,7 @@ struct rspamd_protocol_log_message_sum {
struct rspamd_protocol_log_symbol_result results[];
};
-struct rspamd_metric;
+struct rspamd_main;
/**
* Process headers into HTTP message and set appropriate task fields
@@ -126,7 +126,7 @@ ucl_object_t *rspamd_protocol_write_ucl(struct rspamd_task *task,
* @param task task object
* @return 0 if we wrote reply and -1 if there was some error
*/
-void rspamd_protocol_write_reply(struct rspamd_task *task, ev_tstamp timeout);
+void rspamd_protocol_write_reply(struct rspamd_task *task, ev_tstamp timeout, struct rspamd_main *srv);
/**
* Convert rspamd output to legacy protocol reply