fix: remove the fast timer for start_watch
All checks were successful
/ build (push) Successful in 5m6s
All checks were successful
/ build (push) Successful in 5m6s
This commit is contained in:
parent
37b9676dd4
commit
a9a4e912f4
1 changed files with 2 additions and 2 deletions
|
|
@ -299,7 +299,7 @@ where
|
||||||
tracing::debug!(msg = "server status", status = ?status);
|
tracing::debug!(msg = "server status", status = ?status);
|
||||||
match status {
|
match status {
|
||||||
ServerDeploymentStatus::Connectable(mut server_stream) => {
|
ServerDeploymentStatus::Connectable(mut server_stream) => {
|
||||||
api.start_watch(server.clone(), Duration::from_secs(60))
|
api.start_watch(server.clone(), Duration::from_secs(600))
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
// referenced from:
|
// referenced from:
|
||||||
|
|
@ -350,7 +350,7 @@ where
|
||||||
}
|
}
|
||||||
ServerDeploymentStatus::Offline => {
|
ServerDeploymentStatus::Offline => {
|
||||||
server.start().await?;
|
server.start().await?;
|
||||||
api.start_watch(server.clone(), Duration::from_secs(60))
|
api.start_watch(server.clone(), Duration::from_secs(600))
|
||||||
.await?;
|
.await?;
|
||||||
mc_server::send_disconnect(client_stream, format!("[\"\",{{\"text\":\"Okayy, §2starting§r the server!\n\n\"}},{{\"text\":\"{BYE_MESSAGE}\"}}]").as_str()).await?;
|
mc_server::send_disconnect(client_stream, format!("[\"\",{{\"text\":\"Okayy, §2starting§r the server!\n\n\"}},{{\"text\":\"{BYE_MESSAGE}\"}}]").as_str()).await?;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue