Make storage_page_size for the LegacyBackend configurable (#1458)

This commit is contained in:
James Wilson
2024-02-29 13:13:58 +00:00
committed by GitHub
parent 3ffccb0369
commit ddd0865fa9
3 changed files with 53 additions and 13 deletions
@@ -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}"))?;