mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 13:31:10 +00:00
Stop RPC servers on drop (#11679)
* Stop RPC servers on drop * Switch to existing wrappers that stop RPC servers * Apply formatting
This commit is contained in:
@@ -369,7 +369,8 @@ where
|
||||
match tokio::task::block_in_place(|| {
|
||||
config.tokio_handle.block_on(futures::future::try_join(http_fut, ws_fut))
|
||||
}) {
|
||||
Ok((http, ws)) => Ok(Box::new((http, ws))),
|
||||
Ok((http, ws)) =>
|
||||
Ok(Box::new((waiting::HttpServer(Some(http)), waiting::WsServer(Some(ws))))),
|
||||
Err(e) => Err(Error::Application(e)),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user