aboutsummaryrefslogtreecommitdiffstats
path: root/lampada/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lampada/src/main.rs (renamed from luz/src/main.rs)6
1 files changed, 3 insertions, 3 deletions
diff --git a/luz/src/main.rs b/lampada/src/main.rs
index 5aeef14..7b7469d 100644
--- a/luz/src/main.rs
+++ b/lampada/src/main.rs
@@ -1,7 +1,7 @@
use std::{path::Path, str::FromStr, time::Duration};
use jid::JID;
-use luz::{db::Db, LuzHandle, LuzMessage};
+use lampada::{db::Db, CoreClientCommand, LuzHandle};
use sqlx::SqlitePool;
use tokio::{
io::{AsyncReadExt, AsyncWriteExt},
@@ -24,11 +24,11 @@ async fn main() {
}
});
- luz.send(LuzMessage::Connect).await.unwrap();
+ luz.send(CoreClientCommand::Connect).await.unwrap();
let (send, recv) = oneshot::channel();
tokio::time::sleep(Duration::from_secs(5)).await;
info!("sending message");
- luz.send(LuzMessage::SendMessage(
+ luz.send(CoreClientCommand::SendMessage(
JID::from_str("cel@blos.sm").unwrap(),
luz::chat::Body {
body: "hallo!!!".to_string(),