aboutsummaryrefslogtreecommitdiff
path: root/tool/src/main.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-11-30 12:32:44 +0100
committermetamuffin <metamuffin@disroot.org>2025-11-30 12:32:44 +0100
commit8174d129fbabd2d39323678d11d868893ddb429a (patch)
tree7979a528114cd5fb827f748f678a916e8e8eeddc /tool/src/main.rs
parent5db15c323d76dca9ae71b0204d63dcb09fbbcbc5 (diff)
downloadjellything-8174d129fbabd2d39323678d11d868893ddb429a.tar
jellything-8174d129fbabd2d39323678d11d868893ddb429a.tar.bz2
jellything-8174d129fbabd2d39323678d11d868893ddb429a.tar.zst
new sync cache
Diffstat (limited to 'tool/src/main.rs')
-rw-r--r--tool/src/main.rs12
1 files changed, 7 insertions, 5 deletions
diff --git a/tool/src/main.rs b/tool/src/main.rs
index adf0a35..6aeb617 100644
--- a/tool/src/main.rs
+++ b/tool/src/main.rs
@@ -19,11 +19,13 @@ fn main() -> anyhow::Result<()> {
let args = Args::parse();
match args {
- a @ Action::Add { .. } => tokio::runtime::Builder::new_multi_thread()
- .enable_all()
- .build()
- .unwrap()
- .block_on(add(a)),
+ a @ Action::Add { .. } => {
+ let rt = tokio::runtime::Builder::new_multi_thread()
+ .enable_all()
+ .build()
+ .unwrap();
+ add(a, rt.handle())
+ }
a @ Action::Migrate { .. } => migrate(a),
_ => Ok(()),
// Action::Reimport {