Skip to content

Commit

Permalink
modified: Cargo.toml
Browse files Browse the repository at this point in the history
	modified:   src/bot/run.rs
  • Loading branch information
Threkork committed Sep 29, 2024
1 parent 695fc90 commit 9895890
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kovi"
version = "0.8.0-rc3"
version = "0.8.0-rc4"
edition = "2021"
description = "A OneBot V11 bot plugin framework"
license = "MPL-2.0"
Expand Down
4 changes: 1 addition & 3 deletions src/bot/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,7 @@ impl Bot {
let plugin_builder = PluginBuilder::new(name.clone(), bot.clone(), api_tx.clone());

// 异步运行 main()
PLUGIN_BUILDER.scope(plugin_builder, async move {
(plugins.main)().await;
})
PLUGIN_BUILDER.scope(plugin_builder, (plugins.main)())
});
}
}
Expand Down

0 comments on commit 9895890

Please sign in to comment.