Commit 338d75d0 authored by Koute's avatar Koute Committed by GitHub
Browse files

Fix the `storage_size`/`state_getStorageSize` RPC call (#13154)



* Have `KeyIterator` clone the `prefix` it receives

* Stream keys in `storage_size` RPC and add a runtime limit

* Update client/rpc/Cargo.toml

Co-authored-by: default avatarBastian Köcher <[email protected]>

* Update client/rpc/src/state/utils.rs

Co-authored-by: default avatarBastian Köcher <[email protected]>

* Rename the types to signify that the cancellation is due to a timeout

* Move the test into a `mod tests`

* Add a comment regarding `biased` in `tokio::select`

* Make the `clone` explicit when calling `KeyIterator::{new, new_child}`

Co-authored-by: default avatarBastian Köcher <[email protected]>
parent 3310f7ae
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment