aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/protocol.c
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-11-12 01:10:07 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2023-11-12 01:10:07 +0100
commitdf73d93b10e8e6014f61b1554be5b8553f34852a (patch)
treec12c7742f366b4702ef707fc4eb1f5e5e66b0521 /src/protocol.c
parentrefactoring (diff)
downloadcimple-df73d93b10e8e6014f61b1554be5b8553f34852a.tar.gz
cimple-df73d93b10e8e6014f61b1554be5b8553f34852a.zip
json_rpc: add a routine to generate request IDs
Diffstat (limited to '')
-rw-r--r--src/protocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocol.c b/src/protocol.c
index 977ed6e..8aac63d 100644
--- a/src/protocol.c
+++ b/src/protocol.c
@@ -25,7 +25,7 @@ int request_create_queue_run(struct jsonrpc_request **request, const struct run
{
int ret = 0;
- ret = jsonrpc_request_create(request, 1, CMD_QUEUE_RUN, NULL);
+ ret = jsonrpc_request_create(request, jsonrpc_generate_request_id(), CMD_QUEUE_RUN, NULL);
if (ret < 0)
return ret;
ret = jsonrpc_request_set_param_string(*request, run_key_url, run_get_url(run));