mirror of
https://github.com/Start9Labs/rpc-toolkit.git
synced 2026-03-26 02:11:56 +00:00
fix call remote
This commit is contained in:
@@ -3,6 +3,7 @@ use std::ffi::OsString;
|
|||||||
|
|
||||||
use clap::{CommandFactory, FromArgMatches};
|
use clap::{CommandFactory, FromArgMatches};
|
||||||
use futures::Future;
|
use futures::Future;
|
||||||
|
use imbl_value::imbl::OrdMap;
|
||||||
use imbl_value::Value;
|
use imbl_value::Value;
|
||||||
use reqwest::header::{ACCEPT, CONTENT_LENGTH, CONTENT_TYPE};
|
use reqwest::header::{ACCEPT, CONTENT_LENGTH, CONTENT_TYPE};
|
||||||
use reqwest::{Client, Method};
|
use reqwest::{Client, Method};
|
||||||
@@ -246,6 +247,12 @@ where
|
|||||||
Err(e) => Err(Self::Err::from(e)),
|
Err(e) => Err(Self::Err::from(e)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
fn metadata(&self, method: VecDeque<&'static str>) -> OrdMap<&'static str, Value> {
|
||||||
|
self.handler.metadata(method)
|
||||||
|
}
|
||||||
|
fn method_from_dots(&self, method: &str) -> Option<VecDeque<&'static str>> {
|
||||||
|
self.handler.method_from_dots(method)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
impl<Context, RemoteContext, RemoteHandler, Extra> PrintCliResult<Context>
|
impl<Context, RemoteContext, RemoteHandler, Extra> PrintCliResult<Context>
|
||||||
for CallRemoteHandler<Context, RemoteContext, RemoteHandler, Extra>
|
for CallRemoteHandler<Context, RemoteContext, RemoteHandler, Extra>
|
||||||
|
|||||||
Reference in New Issue
Block a user