Further updates

This commit is contained in:
Age Manning
2020-05-08 16:07:31 +10:00
parent c4d5af81df
commit d54356036b
3 changed files with 11 additions and 18 deletions

View File

@@ -285,8 +285,8 @@ impl<T: EthSpec, S: Store<T>> CachingEth1Backend<T, S> {
}
/// Starts the routine which connects to the external eth1 node and updates the caches.
pub async fn start(&self, exit: tokio::sync::oneshot::Receiver<()>) {
tokio::spawn(async move { self.core.auto_update(exit).await });
fn start(&self, exit: tokio::sync::oneshot::Receiver<()>) {
tokio::spawn(HttpService::auto_update(self.core.clone(), exit));
}
/// Instantiates `self` from an existing service.