Keys are just skipped if deserializating of its key or value fails.
That's because de_fn returns Result which implements Iterator as well and, being iterated, returns nothing in case of error value
|
.flat_map(move |kv| (de_fn)(store, &pk_name, kv).map(|(k, _)| Ok(k))); |
Is it desired behavior?
Keys are just skipped if deserializating of its key or value fails.
That's because de_fn returns Result which implements Iterator as well and, being iterated, returns nothing in case of error value
cw-plus/packages/storage-plus/src/prefix.rs
Line 188 in b2a1561
Is it desired behavior?