kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 1af0772ebe593567a0eeab0191064f2bc29c5d5f
parent 116f935e1070c95537cc222a5c2a6499700864a4
Author: Joris Vink <joris@coders.se>
Date:   Tue,  7 Sep 2021 22:27:02 +0200

Don't add acme to msg framework if not needed.

Diffstat:
src/msg.c | 12++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/msg.c b/src/msg.c @@ -22,6 +22,10 @@ #include "kore.h" #include "http.h" +#if defined(KORE_USE_ACME) +#include "acme.h" +#endif + struct msg_type { u_int8_t id; void (*cb)(struct kore_msg *, const void *); @@ -62,10 +66,14 @@ kore_msg_parent_init(void) continue; } -#if !defined(KORE_USE_ACME) - if (idx == KORE_WORKER_ACME_IDX) + if (idx == KORE_WORKER_ACME_IDX) { +#if defined(KORE_USE_ACME) + if (acme_domains == 0) + continue; +#else continue; #endif + } kw = kore_worker_data(idx); kore_msg_parent_add(kw);