Skip to content

Commit

Permalink
proxy: Adjust the place to refer coll_fd value
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 committed Apr 21, 2022
1 parent 7f7d8c3 commit a7afa3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flb_plugin_proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,6 @@ int flb_plugin_proxy_input_init(struct flb_plugin_proxy *proxy,
return -1;
}

ctx->it.coll_fd = ret;
/* Before to initialize for proxy, set the proxy instance reference */
ctx->proxy = proxy;

Expand Down Expand Up @@ -358,6 +357,7 @@ int flb_plugin_proxy_input_init(struct flb_plugin_proxy *proxy,
flb_error("Could not set collector for threaded proxy input plugin");
goto init_error;
}
ctx->it.coll_fd = ret;

return ret;

Expand Down

0 comments on commit a7afa3e

Please sign in to comment.