diff options
author | 2025-03-25 22:49:38 +0000 | |
---|---|---|
committer | 2025-03-26 00:48:14 +0000 | |
commit | 5272456beab233acb53a140db6a85da5f4ccd2d2 (patch) | |
tree | 5bef0fdfcc76c5857c1099058975f7904447606e /luz/src/main.rs | |
parent | e9ded18ecfe712e86b7e96a931480e609cd920f0 (diff) | |
download | luz-5272456beab233acb53a140db6a85da5f4ccd2d2.tar.gz luz-5272456beab233acb53a140db6a85da5f4ccd2d2.tar.bz2 luz-5272456beab233acb53a140db6a85da5f4ccd2d2.zip |
refactor(luz): separate logic from xmpp core
Diffstat (limited to '')
-rw-r--r-- | luz/src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/luz/src/main.rs b/luz/src/main.rs index 2bfd086..5aeef14 100644 --- a/luz/src/main.rs +++ b/luz/src/main.rs @@ -1,7 +1,7 @@ use std::{path::Path, str::FromStr, time::Duration}; use jid::JID; -use luz::{db::Db, CommandMessage, LuzHandle}; +use luz::{db::Db, LuzHandle, LuzMessage}; use sqlx::SqlitePool; use tokio::{ io::{AsyncReadExt, AsyncWriteExt}, @@ -24,11 +24,11 @@ async fn main() { } }); - luz.send(CommandMessage::Connect).await.unwrap(); + luz.send(LuzMessage::Connect).await.unwrap(); let (send, recv) = oneshot::channel(); tokio::time::sleep(Duration::from_secs(5)).await; info!("sending message"); - luz.send(CommandMessage::SendMessage( + luz.send(LuzMessage::SendMessage( JID::from_str("cel@blos.sm").unwrap(), luz::chat::Body { body: "hallo!!!".to_string(), |