Skip to content

Commit

Permalink
minor tidy
Browse files Browse the repository at this point in the history
Signed-off-by: Greg Eales <[email protected]>
  • Loading branch information
0x006EA1E5 committed Nov 28, 2024
1 parent 1f9301d commit dd0f165
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion plugins/out_loki/loki.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,6 @@ static void pack_maps(struct flb_loki *ctx,
kv = mk_list_entry(head, struct flb_loki_kv, _head);

/* record accessor key/value pair */
// TODO what if kv->ra_val != NULL?
if (kv->ra_key != NULL && kv->ra_val == NULL) {

/* try to get the value for the record accessor */
Expand Down
4 changes: 3 additions & 1 deletion tests/runtime/out_loki.c
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,9 @@ static void cb_check_structured_metadata_value(void *ctx, int ffd,
"\"value1\", \"key5\": false}, \"map3\": {\"key1\": \"map3_value1\", \"key2\": " \
"\"map3_value2\"}}]"
void flb_test_structured_metadata_map_params(char *remove_keys,
char *structured_metadata, char *structured_metadata_map_keys, char *input_log_json,
char *structured_metadata,
char *structured_metadata_map_keys,
char *input_log_json,
char *expected_sub_str)
{
int ret;
Expand Down

0 comments on commit dd0f165

Please sign in to comment.