Skip to content

Commit 56bff20

Browse files
trueleonitisht
andauthored
Fix retention period (#335)
Co-authored-by: Nitish Tiwari <[email protected]>
1 parent 0e16d93 commit 56bff20

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

server/src/storage/retention.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,7 @@ pub fn init_scheduler(stream: &str, config: Retention) {
7575
}
7676
};
7777

78-
scheduler
79-
.every(u32::from(days).days())
80-
.at("00:00")
81-
.run(func);
78+
scheduler.every(1.day()).at("00:00").run(func);
8279
}
8380

8481
let handler = thread::spawn(|| {

0 commit comments

Comments
 (0)