Optimize offchain worker memory usage a bit. (#11454)

* add missing events to elections fallback

* Merged

* add some logs and stuff

* undo a bunch of things

* undo lock file

* remove unused err

* fix build
This commit is contained in:
Kian Paimani authored and GitHub committed 2022-05-24 06:23:05 +00:00
1 parent 4f393171d7
commit 494167a05b
7 files changed
+58 -41

No files matched your search

@@ -544,7 +544,7 @@ mod test {
use crate::{
hash::{StorageHasher as _, *},
metadata::{StorageEntryModifier, StorageHasher},
storage::types::{Key, Key as NMapKey, ValueQuery},
storage::types::{Key, ValueQuery},
};
use sp_io::{hashing::twox_128, TestExternalities};
@@ -590,7 +590,7 @@ mod test {
{
#[crate::storage_alias]
type Foo = StorageNMap<test, (NMapKey<Blake2_128Concat, u16>), u32>;
type Foo = StorageNMap<test, (Key<Blake2_128Concat, u16>), u32>;
assert_eq!(Foo::contains_key((3,)), true);
assert_eq!(Foo::get((3,)), Some(10));