Builder update

This commit is contained in:
Age Manning
2020-05-08 15:06:52 +10:00
parent 167530e3f4
commit c4d5af81df
6 changed files with 171 additions and 230 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<()>) -> Result<(), ()> {
self.core.auto_update(exit).await
pub async fn start(&self, exit: tokio::sync::oneshot::Receiver<()>) {
tokio::spawn(async move { self.core.auto_update(exit).await });
}
/// Instantiates `self` from an existing service.