tuning
This commit is contained in:
@@ -8,11 +8,12 @@ enum SaveMessage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async fn produce_soft_saves(tx: async_channel::Sender<SaveMessage>) {
|
async fn produce_soft_saves(tx: async_channel::Sender<SaveMessage>) {
|
||||||
let secs = 60;
|
let secs = 30;
|
||||||
|
|
||||||
let duration = Duration::from_secs(secs);
|
let duration = Duration::from_secs(secs);
|
||||||
let mut interval = tokio::time::interval(duration);
|
let mut interval = tokio::time::interval(duration);
|
||||||
|
|
||||||
|
interval.tick().await;
|
||||||
loop {
|
loop {
|
||||||
interval.tick().await;
|
interval.tick().await;
|
||||||
|
|
||||||
@@ -21,11 +22,12 @@ async fn produce_soft_saves(tx: async_channel::Sender<SaveMessage>) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async fn produce_hard_saves(tx: async_channel::Sender<SaveMessage>) {
|
async fn produce_hard_saves(tx: async_channel::Sender<SaveMessage>) {
|
||||||
let secs = 240;
|
let secs = 200;
|
||||||
|
|
||||||
let duration = Duration::from_secs(secs);
|
let duration = Duration::from_secs(secs);
|
||||||
let mut interval = tokio::time::interval(duration);
|
let mut interval = tokio::time::interval(duration);
|
||||||
|
|
||||||
|
interval.tick().await;
|
||||||
loop {
|
loop {
|
||||||
interval.tick().await;
|
interval.tick().await;
|
||||||
|
|
||||||
@@ -90,7 +92,7 @@ async fn do_hard_save_with_announcement() {
|
|||||||
|
|
||||||
run_rcon_command([
|
run_rcon_command([
|
||||||
"say",
|
"say",
|
||||||
"The hard save has been completed. We do this to lower crash risks. Thanks.",
|
"The hard save has completed. We do this to lower crash risks. Thanks.",
|
||||||
])
|
])
|
||||||
.await;
|
.await;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user