Skip to content

Commit

Permalink
fix tokio panic in cratesfyi database limits ... subcommands
Browse files Browse the repository at this point in the history
  • Loading branch information
syphar committed Jan 31, 2024
1 parent 9eaf42f commit c43f3a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bin/cratesfyi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -655,8 +655,9 @@ enum LimitsSubcommand {

impl LimitsSubcommand {
fn handle_args(self, ctx: BinContext) -> Result<()> {
let pool = ctx.pool()?;
ctx.runtime()?.block_on(async move {
let mut conn = ctx.pool()?.get_async().await?;
let mut conn = pool.get_async().await?;

match self {
Self::Get { crate_name } => {
Expand Down

0 comments on commit c43f3a4

Please sign in to comment.