Skip to content
Snippets Groups Projects
Commit 947b82df authored by Bastian Köcher's avatar Bastian Köcher Committed by GitHub
Browse files

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

parent 2877c038
No related merge requests found
......@@ -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(|_| ())
});
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment