File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -813,7 +813,11 @@ 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
+ if let Err ( e) = call. await {
818
+ log:: warn!( "Wildcard notification handler error: '{}'" , e)
819
+ }
820
+ } ) ;
817
821
}
818
822
None => { }
819
823
} ;
@@ -823,7 +827,11 @@ where
823
827
match self . subscriptions . get ( method) {
824
828
Some ( cb) => {
825
829
let call = cb ( plugin. clone ( ) , params. clone ( ) ) ;
826
- tokio:: spawn ( async move { call. await . unwrap ( ) } ) ;
830
+ tokio:: spawn ( async move {
831
+ if let Err ( e) = call. await {
832
+ log:: warn!( "Notification handler error: '{}'" , e)
833
+ }
834
+ } ) ;
827
835
}
828
836
None => {
829
837
if self . wildcard_subscription . is_none ( ) {
You can’t perform that action at this time.
0 commit comments