mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-16 03:12:41 +00:00
Merge branch 'upstream/stable-futures' into master-sf
This commit is contained in:
@@ -612,11 +612,10 @@ impl<E: EthSpec> Node<E> {
|
||||
client.json_get(url, vec![]).await
|
||||
}
|
||||
|
||||
pub fn syncing_status(&self) -> impl Future<Item = SyncingResponse, Error = Error> {
|
||||
pub async fn syncing_status(&self) -> Result<SyncingResponse, Error> {
|
||||
let client = self.0.clone();
|
||||
self.url("syncing")
|
||||
.into_future()
|
||||
.and_then(move |url| client.json_get(url, vec![]))
|
||||
let url = self.url("syncing")?;
|
||||
client.json_get(url, vec![]).await
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user