apply fixes

This commit is contained in:
Drackrath 2026-11-04 02:57:56 +01:00
commit ff9a62d860
No known key found for this signature in database
5 changed files with 1001 additions and 693 deletions

View file

@ -7,7 +7,7 @@ use steam_vent::auth::{
FileGuardDataStore, SharedSecretAuthConfirmationHandler,
};
use steam_vent::{Connection, ServerList};
use steam_vent_chat::{ChatClient, ChatEvent};
use aurelia_steam_vent_chat::{ChatClient, ChatEvent};
use steamid_ng::SteamID;
use tokio::spawn;
use tokio_stream::StreamExt;
@ -56,7 +56,8 @@ async fn main() -> Result<(), Box<dyn Error>> {
}
};
let chat = ChatClient::new(connection);
// listen() borrows; spawn needs 'static.
let chat: &'static ChatClient = Box::leak(Box::new(ChatClient::new(connection)));
let mut events = chat.listen();
spawn(async move {