Browse Source

Let type-inference to its thing

refactor/no-log-handler
Thomas Eizinger 3 years ago
parent
commit
ab3325e1ec
No known key found for this signature in database GPG Key ID: 651AC83A6C6C8B96
  1. 6
      daemon/src/oracle.rs

6
daemon/src/oracle.rs

@ -92,7 +92,7 @@ where
}
async fn update_latest_announcements(&mut self) -> Result<()> {
let new_announcements = next_ids()
self.latest_announcements = next_ids()
.into_iter()
.map(|event_id| async move {
let url = event_id.to_olivia_url();
@ -111,11 +111,9 @@ where
Result::<_, anyhow::Error>::Ok((event_id, announcement))
})
.collect::<FuturesOrdered<_>>()
.try_collect::<HashMap<OracleEventId, Announcement>>()
.try_collect()
.await?;
self.latest_announcements = new_announcements;
Ok(())
}

Loading…
Cancel
Save