Companion pr for Substrate #5889 (#1067)

* Companion pr for Substrate #5889

* Update Substrate ref
This commit is contained in:
Bastian Köcher
2020-05-05 15:47:40 +02:00
committed by GitHub
parent f64c2a940f
commit 1f5771e898
2 changed files with 132 additions and 133 deletions
+129 -130
View File
File diff suppressed because it is too large Load Diff
+3 -3
View File
@@ -913,9 +913,9 @@ impl<T: Trait> Module<T> {
*len += upward_messages.iter()
.fold(0, |a, x| a + x.data.len()) as u32;
});
// Should never be able to fail assuming our state is uncorrupted, but best not
// to panic, even if it does.
let _ = RelayDispatchQueue::append(id, upward_messages);
upward_messages.iter().for_each(|m| RelayDispatchQueue::append(id, m));
if let Err(i) = ordered_needs_dispatch.binary_search(&id) {
// same.
ordered_needs_dispatch.insert(i, id);