mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-08-09 15:12:50 -04:00
add missing file
This commit is contained in:
parent
b7aedbbe7d
commit
a5ffcee36f
1 changed files with 23 additions and 0 deletions
|
@ -0,0 +1,23 @@
|
||||||
|
use super::*;
|
||||||
|
|
||||||
|
impl StorageManager {
|
||||||
|
// Check if server-side watches have expired
|
||||||
|
#[instrument(level = "trace", skip(self), err)]
|
||||||
|
pub(super) async fn check_watched_records_task_routine(
|
||||||
|
self,
|
||||||
|
stop_token: StopToken,
|
||||||
|
_last_ts: Timestamp,
|
||||||
|
_cur_ts: Timestamp,
|
||||||
|
) -> EyreResult<()> {
|
||||||
|
let mut inner = self.inner.lock().await;
|
||||||
|
|
||||||
|
if let Some(local_record_store) = &mut inner.local_record_store {
|
||||||
|
local_record_store.check_watched_records();
|
||||||
|
}
|
||||||
|
if let Some(remote_record_store) = &mut inner.remote_record_store {
|
||||||
|
remote_record_store.check_watched_records();
|
||||||
|
}
|
||||||
|
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue