-
Notifications
You must be signed in to change notification settings - Fork 521
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pubsys: only create tokio runtime when needed
tough-ssm creates its own tokio runtime for making SSM calls, so we can't use it inside our own tokio runtime. This change removes the general `[tokio::main]` annotation that creates a runtime for the entire app, and instead only creates a runtime inside the `ami` subcommand that needs one. We can switch back to the annotation when tough-ssm moves to an async interface.
- Loading branch information
Showing
1 changed file
with
15 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters