Browse Source
Let type-inference to its thing
refactor/no-log-handler
Thomas Eizinger
3 years ago
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96
1 changed files with
2 additions and
4 deletions
-
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(()) |
|
|
|
} |
|
|
|
|
|
|
|