Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cli): Prevent panics in "wasmer login" after API failures
Previously login_and_save_token() was called from an async context. Since the function uses a blocking reqwest client for the internal GraphQL query, this could lead to panics when the API query failed, due to the blocking reqwest tokio runtime trying to shut down inside another tokio runtime, which is not allowed. This is fixed by running login_and_save_token() inside a spawned thread. Closes #4147
- Loading branch information