diff options
| author | metamuffin <metamuffin@disroot.org> | 2025-11-30 12:32:44 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2025-11-30 12:32:44 +0100 |
| commit | 8174d129fbabd2d39323678d11d868893ddb429a (patch) | |
| tree | 7979a528114cd5fb827f748f678a916e8e8eeddc /tool/src/main.rs | |
| parent | 5db15c323d76dca9ae71b0204d63dcb09fbbcbc5 (diff) | |
| download | jellything-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.rs | 12 |
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 { |