mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
kafka: use default client-id of "villas-node"
This commit is contained in:
parent
5b76110607
commit
1926306318
1 changed files with 2 additions and 2 deletions
|
@ -175,7 +175,7 @@ int kafka_parse(struct vnode *n, json_t *json)
|
|||
const char *produce = nullptr;
|
||||
const char *consume = nullptr;
|
||||
const char *protocol;
|
||||
const char *client_id = nullptr;
|
||||
const char *client_id = "villas-node";
|
||||
const char *group_id = nullptr;
|
||||
|
||||
json_error_t err;
|
||||
|
@ -203,7 +203,7 @@ int kafka_parse(struct vnode *n, json_t *json)
|
|||
k->produce = produce ? strdup(produce) : nullptr;
|
||||
k->consume = consume ? strdup(consume) : nullptr;
|
||||
k->protocol = strdup(protocol);
|
||||
k->client_id = client_id ? strdup(client_id) : nullptr;
|
||||
k->client_id = strdup(client_id);
|
||||
k->consumer.group_id = group_id ? strdup(group_id) : nullptr;
|
||||
|
||||
if (strcmp(protocol, "SSL") &&
|
||||
|
|
Loading…
Add table
Reference in a new issue