File tree 2 files changed +20
-3
lines changed
2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -813,7 +813,17 @@ where
813
813
match & self . wildcard_subscription {
814
814
Some ( cb) => {
815
815
let call = cb ( plugin. clone ( ) , params. clone ( ) ) ;
816
- tokio:: spawn ( async move { call. await . unwrap ( ) } ) ;
816
+ tokio:: spawn ( async move {
817
+ match call. await {
818
+ Ok ( _o) => ( ) ,
819
+ Err ( e) => {
820
+ log:: warn!(
821
+ "Wildcard notification handler error: '{}'" ,
822
+ e
823
+ )
824
+ }
825
+ }
826
+ } ) ;
817
827
}
818
828
None => { }
819
829
} ;
@@ -823,7 +833,14 @@ where
823
833
match self . subscriptions . get ( method) {
824
834
Some ( cb) => {
825
835
let call = cb ( plugin. clone ( ) , params. clone ( ) ) ;
826
- tokio:: spawn ( async move { call. await . unwrap ( ) } ) ;
836
+ tokio:: spawn ( async move {
837
+ match call. await {
838
+ Ok ( _o) => ( ) ,
839
+ Err ( e) => {
840
+ log:: warn!( "Notification handler error: '{}'" , e)
841
+ }
842
+ }
843
+ } ) ;
827
844
}
828
845
None => {
829
846
if self . wildcard_subscription . is_none ( ) {
You can’t perform that action at this time.
0 commit comments