Companion pr for Substrate #5889 (#1067)

* Companion pr for Substrate #5889

* Update Substrate ref
This commit is contained in:
Bastian Köcher authored and GitHub committed 2020-05-05 14:47:40 +01:00
1 parent f64c2a940f
commit 1f5771e898
2 files changed
+132 -133

No files matched your search

+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);