Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

refactor(store): change store map to iter #293

Merged
merged 8 commits into from
May 28, 2020
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion framework/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ util = { path = "../built-in-services/util"}
hasher = { version = "0.1", features = ['hash-keccak'] }
cita_trie = "2.0"
bytes = "0.5"
derive_more = "0.15"
derive_more = "0.99"
rocksdb = "0.12"
lazy_static = "1.4"
byteorder = "1.3"
Expand All @@ -27,9 +27,12 @@ json = "0.12"
hex = "0.4"
serde_json = "1.0"
log = "0.4"
rayon = "1.3"

[dev-dependencies]
async-trait = "0.1"
toml = "0.5"
binding-macro = { path = "../binding-macro" }
rand = "0.7"
serde = { version = "1.0", features = ["derive"] }
muta-codec-derive = "0.2"
5 changes: 4 additions & 1 deletion framework/src/binding/sdk/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ impl<S: 'static + ServiceState, C: ChainQuerier, D: Dispatcher> ServiceSDK
for DefalutServiceSDK<S, C, D>
{
// Alloc or recover a `Map` by` var_name`
fn alloc_or_recover_map<K: 'static + FixedCodec + PartialEq, V: 'static + FixedCodec>(
fn alloc_or_recover_map<
K: 'static + Send + FixedCodec + Clone + PartialEq,
V: 'static + FixedCodec,
>(
&mut self,
var_name: &str,
) -> Box<dyn StoreMap<K, V>> {
Expand Down
Loading