Don't panic on a sink error (#7666)

This commit is contained in:
Bastian Köcher
2020-12-03 17:11:49 +01:00
committed by GitHub
parent 2877c038cf
commit 947b82df68
+1 -1
View File
@@ -215,7 +215,7 @@ impl<P, Client> AuthorApi<TxHash<P>, BlockHash<P>> for Author<P, Client>
Ok(watcher) => {
subscriptions.add(subscriber, move |sink| {
sink
.sink_map_err(|_| unimplemented!())
.sink_map_err(|e| log::debug!("Subscription sink failed: {:?}", e))
.send_all(Compat::new(watcher))
.map(|_| ())
});