mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 08:51:09 +00:00
backend: Show errors from unpin_method
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
@@ -254,7 +254,10 @@ impl<Hash: BlockHash> FollowStreamUnpin<Hash> {
|
||||
let methods = methods.clone();
|
||||
let fut: UnpinFut = Box::pin(async move {
|
||||
// We ignore any errors trying to unpin at the moment.
|
||||
let _ = methods.chainhead_unstable_unpin(&sub_id, hash).await;
|
||||
let result = methods.chainhead_unstable_unpin(&sub_id, hash).await;
|
||||
if let Err(e) = result {
|
||||
panic!("Error unpinning block: {:?}", e);
|
||||
}
|
||||
});
|
||||
fut
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user