Make storage_page_size for the LegacyBackend configurable (#1458)

This commit is contained in:
James Wilson authored and GitHub committed 2024-02-29 13:13:58 +00:00
1 parent 3ffccb0369
commit ddd0865fa9
3 files changed
+53 -13

No files matched your search

@@ -201,7 +201,7 @@ async fn build_rpc_client(ws_url: &str) -> Result<rpc::RpcClient, String> {
async fn build_legacy_client<T: Config>(
rpc_client: rpc::RpcClient,
) -> Result<OnlineClient<T>, String> {
let backend = legacy::LegacyBackend::new(rpc_client);
let backend = legacy::LegacyBackend::builder().build(rpc_client);
let client = OnlineClient::from_backend(Arc::new(backend))
.await
.map_err(|e| format!("Cannot construct OnlineClient from backend: {e}"))?;