File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -669,7 +669,7 @@ impl Subscriptions {
669
669
match & sub. permissions . expired ( ) {
670
670
Ok ( ( ) ) => true ,
671
671
Err ( PermissionError :: Expired ) => {
672
- sub . sender = None ;
672
+ info ! ( "Token expired: removing subscription" ) ;
673
673
false
674
674
}
675
675
Err ( err) => panic ! ( "Error: {:?}" , err) ,
@@ -705,7 +705,6 @@ impl ChangeSubscription {
705
705
// notify
706
706
let notifications = {
707
707
let mut notifications = EntryUpdates :: default ( ) ;
708
- let mut error = None ;
709
708
for ( id, changed_fields) in changed {
710
709
if let Some ( fields) = self . entries . get ( id) {
711
710
if !fields. is_disjoint ( changed_fields) {
@@ -737,8 +736,7 @@ impl ChangeSubscription {
737
736
}
738
737
Err ( ReadError :: PermissionExpired ) => {
739
738
debug ! ( "notify: token expired, closing subscription channel" ) ;
740
- error = Some ( NotificationError { } ) ;
741
- break ;
739
+ return Err ( NotificationError { } )
742
740
}
743
741
Err ( _) => {
744
742
debug ! ( "notify: could not find entry with id {}" , id) ;
@@ -747,9 +745,6 @@ impl ChangeSubscription {
747
745
}
748
746
}
749
747
}
750
- if let Some ( err) = error {
751
- return Err ( err) ;
752
- }
753
748
notifications
754
749
} ;
755
750
if notifications. updates . is_empty ( ) {
You can’t perform that action at this time.
0 commit comments