mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-27 05:59:49 +00:00
fixed panic on empty remote read request (#4619)
This commit is contained in:
1 parent
3219be2508
commit
afba48aeba
2 files changed
+16
-2
No files matched your search
@@ -325,8 +325,8 @@ impl<Block, F, B, E, RA> StateBackend<B, E, Block, RA> for LightState<Block, F,
|
||||
keys: Option<Vec<StorageKey>>
|
||||
) {
|
||||
let keys = match keys {
|
||||
Some(keys) => keys,
|
||||
None => {
|
||||
Some(keys) if !keys.is_empty() => keys,
|
||||
_ => {
|
||||
warn!("Cannot subscribe to all keys on light client. Subscription rejected.");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user