From a19624fc784132b9f8c003b7ee5fe9159c7fe196 Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Wed, 14 Jan 2026 12:43:02 -0700 Subject: [PATCH] add metadata to call_remote --- src/cli.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cli.rs b/src/cli.rs index 2b2a6e7..29e6491 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -78,6 +78,7 @@ pub trait CallRemote: crate::Context { fn call_remote( &self, method: &str, + metadata: OrdMap<&'static str, Value>, params: Value, extra: Extra, ) -> impl Future> + Send; @@ -239,12 +240,13 @@ where let full_method = handle_args .parent_method .into_iter() - .chain(handle_args.method) + .chain(handle_args.method.clone()) .collect::>(); match handle_args .context .call_remote( &full_method.join("."), + self.handler.metadata(handle_args.method), without(handle_args.raw_params.clone(), &handle_args.params.1) .map_err(invalid_params)?, handle_args.params.1,