Commit 31e3ab16 authored by Johannes Hayeß's avatar Johannes Hayeß 🖤
Browse files

Remove unnecessary life-time hack

parent 22f1c29e
Pipeline #116185 passed with stages
in 6 minutes and 8 seconds
......@@ -94,8 +94,6 @@ impl Metaolm {
.insert(otk_blocker_id, Blocker::DoOTKReplenish);
}
let mut blocker_manager = self.blocker_manager;
let iter = self.receiver.try_iter();
for packet in iter {
match packet.header {
......@@ -148,7 +146,7 @@ impl Metaolm {
OlmHandleType::FirstRun,
&self.olm_account,
&mut self.session_cache,
&mut blocker_manager,
&mut self.blocker_manager,
&mut self.blocked_items,
&self.user_id,
&self.device_id,
......@@ -189,8 +187,6 @@ impl Metaolm {
_ => {}
}
self.blocker_manager = blocker_manager;
if packet.blocker_id.is_some() {
let blocker_id = packet.blocker_id.unwrap();
let blocked_item_result = self.blocked_items.remove(&blocker_id);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment