File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
crates/matrix-sdk-indexeddb/src/event_cache_store Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ impl_event_cache_store! {
144
144
self . transaction( & [ Lease :: OBJECT_STORE ] , IdbTransactionMode :: Readwrite ) ?;
145
145
146
146
if let Some ( lease) = transaction. get_lease_by_id( key) . await ? {
147
- if lease. holder != holder && !lease. expired_at ( now) {
147
+ if lease. holder != holder && !lease. has_expired ( now) {
148
148
return Ok ( false ) ;
149
149
}
150
150
}
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ pub struct Lease {
32
32
33
33
impl Lease {
34
34
/// Determines whether the lease is expired at a given time `t`
35
- pub fn expired_at ( & self , t : Duration ) -> bool {
35
+ pub fn has_expired ( & self , t : Duration ) -> bool {
36
36
self . expiration < t
37
37
}
38
38
}
You can’t perform that action at this time.
0 commit comments