aboutsummaryrefslogtreecommitdiffstats
path: root/luz/src/main.rs
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@bunny.garden>2025-02-24 10:03:12 +0000
committerLibravatar cel 🌸 <cel@bunny.garden>2025-02-24 10:03:12 +0000
commiteda4bd92ff1f83e905b84b4b2e9497389ee03466 (patch)
tree4baf81c29457e34c0155f882d5b5fed38fa5f5b9 /luz/src/main.rs
parent7dc1b1f35d02485b75c0373701dd09cec874ac4d (diff)
downloadluz-eda4bd92ff1f83e905b84b4b2e9497389ee03466.tar.gz
luz-eda4bd92ff1f83e905b84b4b2e9497389ee03466.tar.bz2
luz-eda4bd92ff1f83e905b84b4b2e9497389ee03466.zip
fix crash by fusing oneshot
Diffstat (limited to '')
-rw-r--r--luz/src/main.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/luz/src/main.rs b/luz/src/main.rs
index 9779351..2506883 100644
--- a/luz/src/main.rs
+++ b/luz/src/main.rs
@@ -12,9 +12,13 @@ use tracing::info;
#[tokio::main]
async fn main() {
tracing_subscriber::fmt::init();
- let db = SqlitePool::connect("./luz.db").await.unwrap();
- let (luz, mut recv) =
- LuzHandle::new("test@blos.sm".try_into().unwrap(), "slayed".to_string(), db);
+ let (luz, mut recv) = LuzHandle::new(
+ "test@blos.sm".try_into().unwrap(),
+ "slayed".to_string(),
+ "./luz.db",
+ )
+ .await
+ .unwrap();
tokio::spawn(async move {
while let Some(msg) = recv.recv().await {