mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 10:31:04 +00:00
update jsonrpsee (#251)
This commit is contained in:
+1
-1
@@ -212,7 +212,7 @@ impl<T: Runtime> ClientBuilder<T> {
|
||||
if url.starts_with("ws://") || url.starts_with("wss://") {
|
||||
let mut config = WsConfig::with_url(&url);
|
||||
config.max_notifs_per_subscription = 4096;
|
||||
RpcClient::WebSocket(WsClient::new(config).await?)
|
||||
RpcClient::WebSocket(Arc::new(WsClient::new(config).await?))
|
||||
} else {
|
||||
let client = HttpClient::new(url, HttpConfig::default())?;
|
||||
RpcClient::Http(Arc::new(client))
|
||||
|
||||
Reference in New Issue
Block a user