out_es: use new flush context in test formatter callback
@@ -162,6 +162,7 @@ static inline int es_pack_map_content(msgpack_packer *tmp_pck,
static int elasticsearch_format(struct flb_config *config,
struct flb_input_instance *ins,
void *plugin_context,
+ void *flush_ctx,
const char *tag, int tag_len,
const void *data, size_t bytes,
void **out_data, size_t *out_size)
@@ -605,7 +606,7 @@ static void cb_es_flush(const void *data, size_t bytes,
/* Convert format */
ret = elasticsearch_format(config, ins,
- ctx,
+ ctx, NULL,
tag, tag_len,
data, bytes,
&out_buf, &out_size);
