diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-11-12 01:10:07 +0100 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-11-12 01:10:07 +0100 |
commit | df73d93b10e8e6014f61b1554be5b8553f34852a (patch) | |
tree | c12c7742f366b4702ef707fc4eb1f5e5e66b0521 /src/protocol.c | |
parent | refactoring (diff) | |
download | cimple-df73d93b10e8e6014f61b1554be5b8553f34852a.tar.gz cimple-df73d93b10e8e6014f61b1554be5b8553f34852a.zip |
json_rpc: add a routine to generate request IDs
Diffstat (limited to '')
-rw-r--r-- | src/protocol.c | 2 |
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)); |