File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5990,7 +5990,7 @@ where
5990
5990
5991
5991
#[ cfg( any( test, feature = "_test_utils" ) ) ]
5992
5992
pub fn get_persistence_condvar_value ( & self ) -> bool {
5993
- self . persistence_notifier . needs_persist ( )
5993
+ self . persistence_notifier . notify_pending ( )
5994
5994
}
5995
5995
5996
5996
/// Gets the latest best block which was connected either via the [`chain::Listen`] or
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ impl Notifier {
80
80
}
81
81
}
82
82
83
- /// Wake waiters, tracking that persistence needs to occur.
83
+ /// Wake waiters, tracking that wake needs to occur even if there are currently no waiters .
84
84
pub ( crate ) fn notify ( & self ) {
85
85
let & ( ref persist_mtx, ref cnd) = & self . lock ;
86
86
let mut lock = persist_mtx. lock ( ) . unwrap ( ) ;
@@ -90,7 +90,7 @@ impl Notifier {
90
90
}
91
91
92
92
#[ cfg( any( test, feature = "_test_utils" ) ) ]
93
- pub fn needs_persist ( & self ) -> bool {
93
+ pub fn notify_pending ( & self ) -> bool {
94
94
let & ( ref mtx, _) = & self . lock ;
95
95
let guard = mtx. lock ( ) . unwrap ( ) ;
96
96
* guard
You can’t perform that action at this time.
0 commit comments