diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-06 19:08:15 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-06 19:08:15 +0100 |
commit | 52b4b8db0b126f7004d6aff79cbea3b06f94c927 (patch) | |
tree | aeed0cb84fc81a93133f0f817675a86b6cd62b53 /src/libserver/monitored.c | |
parent | fd20fa9f63e72df66b2b702cde982f729f704480 (diff) | |
download | rspamd-52b4b8db0b126f7004d6aff79cbea3b06f94c927.tar.gz rspamd-52b4b8db0b126f7004d6aff79cbea3b06f94c927.zip |
[Rework] Send health checks from a single worker
Diffstat (limited to 'src/libserver/monitored.c')
-rw-r--r-- | src/libserver/monitored.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/libserver/monitored.c b/src/libserver/monitored.c index a280298c8..548dcf362 100644 --- a/src/libserver/monitored.c +++ b/src/libserver/monitored.c @@ -386,6 +386,13 @@ rspamd_monitored_ctx_config (struct rspamd_monitored_ctx *ctx, } +struct event_base * +rspamd_monitored_ctx_get_ev_base (struct rspamd_monitored_ctx *ctx) +{ + return ctx->ev_base; +} + + struct rspamd_monitored * rspamd_monitored_create_ (struct rspamd_monitored_ctx *ctx, const gchar *line, @@ -580,5 +587,5 @@ rspamd_monitored_get_tag (struct rspamd_monitored *m, { g_assert (m != NULL); - rspamd_strlcpy (m->tag, tag_out, RSPAMD_MONITORED_TAG_LEN); + rspamd_strlcpy (tag_out, m->tag, RSPAMD_MONITORED_TAG_LEN); }
\ No newline at end of file |