mirror of
https://codeberg.org/steam-vent/chat.git
synced 2026-11-30 12:40:52 +01:00
apply fixes
This commit is contained in:
parent
5710d6858e
commit
ff9a62d860
5 changed files with 1001 additions and 693 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue