Skip to content

Commit

Permalink
plugin_proxy: Tell whether hot-reloading is enabled or not for Golang…
Browse files Browse the repository at this point in the history
… plugins

Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 committed Oct 2, 2023
1 parent 4038394 commit 50b35a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/flb_plugin_proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,11 +293,11 @@ static int flb_proxy_input_cb_pre_run(struct flb_input_instance *ins,
proxy = pc->proxy;

/* pre_run */
int (*cb_pre_run)(void);
int (*cb_pre_run)(int);

cb_pre_run = flb_plugin_proxy_symbol(proxy, "FLBPluginInputPreRun");
if (cb_pre_run != NULL) {
ret = cb_pre_run();
ret = cb_pre_run(config->enable_hot_reload);
}

return ret;
Expand All @@ -314,11 +314,11 @@ static int flb_proxy_output_cb_pre_run(void *out_context, struct flb_config *con
}

/* pre_run */
void (*cb_pre_run)(void);
int (*cb_pre_run)(int);

cb_pre_run = flb_plugin_proxy_symbol(proxy, "FLBPluginOutputPreRun");
if (cb_pre_run != NULL) {
ret = cb_pre_run();
ret = cb_pre_run(config->enable_hot_reload);
}

return ret;
Expand Down

0 comments on commit 50b35a8

Please sign in to comment.