diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2016-10-22 12:50:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-22 12:50:50 +0200 |
commit | 31df051ed9a3f8cc9ad7a4e408e3ba03a1c5272b (patch) | |
tree | 5e62dbb09dc5d02818d2a080b08af2168f306f8b /src/nvim/msgpack_rpc | |
parent | e9041862776715cfb24e29fb7f18fa0830bd5555 (diff) | |
parent | f6968dc0f7775591108aebbfe30e597dd0882c91 (diff) | |
download | rneovim-31df051ed9a3f8cc9ad7a4e408e3ba03a1c5272b.tar.gz rneovim-31df051ed9a3f8cc9ad7a4e408e3ba03a1c5272b.tar.bz2 rneovim-31df051ed9a3f8cc9ad7a4e408e3ba03a1c5272b.zip |
Merge pull request #4568 from bfredl/multirequest
atomic multi request for async remote plugins
Diffstat (limited to 'src/nvim/msgpack_rpc')
-rw-r--r-- | src/nvim/msgpack_rpc/channel.c | 2 | ||||
-rw-r--r-- | src/nvim/msgpack_rpc/helpers.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/msgpack_rpc/channel.c b/src/nvim/msgpack_rpc/channel.c index fef1d08db7..98636263b9 100644 --- a/src/nvim/msgpack_rpc/channel.c +++ b/src/nvim/msgpack_rpc/channel.c @@ -452,7 +452,7 @@ static void on_request_event(void **argv) Array args = e->args; uint64_t request_id = e->request_id; Error error = ERROR_INIT; - Object result = handler.fn(channel->id, request_id, args, &error); + Object result = handler.fn(channel->id, args, &error); if (request_id != NO_RESPONSE) { // send the response msgpack_packer response; diff --git a/src/nvim/msgpack_rpc/helpers.c b/src/nvim/msgpack_rpc/helpers.c index 33e9bb1c07..14e1c2d978 100644 --- a/src/nvim/msgpack_rpc/helpers.c +++ b/src/nvim/msgpack_rpc/helpers.c @@ -455,7 +455,6 @@ void msgpack_rpc_from_dictionary(Dictionary result, msgpack_packer *res) /// Handler executed when an invalid method name is passed Object msgpack_rpc_handle_missing_method(uint64_t channel_id, - uint64_t request_id, Array args, Error *error) { @@ -466,7 +465,6 @@ Object msgpack_rpc_handle_missing_method(uint64_t channel_id, /// Handler executed when malformated arguments are passed Object msgpack_rpc_handle_invalid_arguments(uint64_t channel_id, - uint64_t request_id, Array args, Error *error) { |