Skip to content

Commit

Permalink
input: Move processor init to the proper place
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 committed May 16, 2023
1 parent 863afec commit 35db259
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/flb_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -1206,6 +1206,12 @@ int flb_input_instance_init(struct flb_input_instance *ins,
}
}

/* initialize processors */
ret = flb_processor_init(ins->processor);
if (ret == -1) {
return -1;
}

return 0;
}

Expand Down Expand Up @@ -1255,12 +1261,6 @@ int flb_input_init_all(struct flb_config *config)
flb_input_instance_destroy(ins);
return -1;
}

/* initialize processors */
ret = flb_processor_init(ins->processor);
if (ret == -1) {
return -1;
}
}

return 0;
Expand Down

0 comments on commit 35db259

Please sign in to comment.