Update public backend API surface
Private source commit: ba3f7ce2b6d9
This commit is contained in:
parent
784463622c
commit
26fdcb9d84
34 changed files with 5473 additions and 72 deletions
|
|
@ -61,7 +61,21 @@ impl ControlSession {
|
|||
endpoint: &str,
|
||||
api_path: &str,
|
||||
) -> Result<Self, ControlTransportError> {
|
||||
let session = Self::connect(endpoint)?;
|
||||
Self::connect_to_api_path_with_timeouts(
|
||||
endpoint,
|
||||
api_path,
|
||||
Duration::from_secs(10),
|
||||
Duration::from_secs(30),
|
||||
)
|
||||
}
|
||||
|
||||
pub fn connect_to_api_path_with_timeouts(
|
||||
endpoint: &str,
|
||||
api_path: &str,
|
||||
connect_timeout: Duration,
|
||||
io_timeout: Duration,
|
||||
) -> Result<Self, ControlTransportError> {
|
||||
let session = Self::connect_with_timeouts(endpoint, connect_timeout, io_timeout)?;
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
{
|
||||
let mut session = session;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue