Skip to content

Commit c43f3a4

Browse files
committed
fix tokio panic in cratesfyi database limits ... subcommands
1 parent 9eaf42f commit c43f3a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/cratesfyi.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -655,8 +655,9 @@ enum LimitsSubcommand {
655655

656656
impl LimitsSubcommand {
657657
fn handle_args(self, ctx: BinContext) -> Result<()> {
658+
let pool = ctx.pool()?;
658659
ctx.runtime()?.block_on(async move {
659-
let mut conn = ctx.pool()?.get_async().await?;
660+
let mut conn = pool.get_async().await?;
660661

661662
match self {
662663
Self::Get { crate_name } => {

0 commit comments

Comments
 (0)