feat: handle SIGTREM
All checks were successful
/ build (push) Successful in 2m56s

This commit is contained in:
Tamipes 2026-06-08 17:02:34 +02:00
parent ac8812be2f
commit 29ff12f115
7 changed files with 111 additions and 69 deletions

View file

@ -1,5 +1,6 @@
use std::{collections::HashMap, fmt, sync::Arc, time::Duration};
use async_trait::async_trait;
use futures::StreamExt;
use k8s_openapi::api::{apps::v1::Deployment, core::v1::Service};
use kube::{
@ -115,6 +116,7 @@ pub struct McApi {
map: Arc<tokio::sync::Mutex<HashMap<String, JoinHandle<()>>>>,
}
#[async_trait]
impl MinecraftAPI<Server> for McApi {
#[tracing::instrument(
name = "MinecraftAPI::query_server",