Skip to content

Commit 46af981

Browse files
committed
fix: warnings
1 parent abeb0c1 commit 46af981

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

components/ordhook-core/src/core/meta_protocols/brc20/brc20_pg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ mod test {
10311031
);
10321032
}
10331033
}
1034-
pg_reset_db(&mut pg_client).await;
1034+
pg_reset_db(&mut pg_client).await?;
10351035
Ok(())
10361036
}
10371037
}

components/ordhook-core/src/core/meta_protocols/brc20/cache.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ mod test {
658658
)))
659659
);
660660
}
661-
pg_reset_db(&mut pg_client).await;
661+
pg_reset_db(&mut pg_client).await?;
662662
Ok(())
663663
}
664664

@@ -760,7 +760,7 @@ mod test {
760760
)
761761
.await?)
762762
};
763-
pg_reset_db(&mut pg_client).await;
763+
pg_reset_db(&mut pg_client).await?;
764764
result
765765
}
766766
}

components/ordhook-core/src/core/meta_protocols/brc20/index.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ mod test {
284284
},
285285
test_builders::{TestBlockBuilder, TestTransactionBuilder},
286286
},
287-
db::{pg_test_clear_db, pg_test_connection, pg_test_connection_pool},
287+
db::{pg_reset_db, pg_test_connection, pg_test_connection_pool},
288288
};
289289

290290
#[tokio::test]
@@ -469,7 +469,7 @@ mod test {
469469

470470
result
471471
};
472-
pg_test_clear_db(&mut pg_client).await;
472+
pg_reset_db(&mut pg_client).await?;
473473
result
474474
}
475475
}

components/ordhook-core/src/core/meta_protocols/brc20/verifier.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ mod test {
456456
)
457457
.await
458458
};
459-
pg_reset_db(&mut pg_client).await;
459+
pg_reset_db(&mut pg_client).await?;
460460
result
461461
}
462462

@@ -569,7 +569,7 @@ mod test {
569569
)
570570
.await
571571
};
572-
pg_reset_db(&mut pg_client).await;
572+
pg_reset_db(&mut pg_client).await?;
573573
result
574574
}
575575

@@ -656,7 +656,7 @@ mod test {
656656
)
657657
.await
658658
};
659-
pg_reset_db(&mut pg_client).await;
659+
pg_reset_db(&mut pg_client).await?;
660660
result
661661
}
662662

@@ -733,7 +733,7 @@ mod test {
733733
)
734734
.await
735735
};
736-
pg_reset_db(&mut pg_client).await;
736+
pg_reset_db(&mut pg_client).await?;
737737
result
738738
}
739739

@@ -813,7 +813,7 @@ mod test {
813813
)
814814
.await
815815
};
816-
pg_reset_db(&mut pg_client).await;
816+
pg_reset_db(&mut pg_client).await?;
817817
result
818818
}
819819

@@ -977,7 +977,7 @@ mod test {
977977
)
978978
.await
979979
};
980-
pg_reset_db(&mut pg_client).await;
980+
pg_reset_db(&mut pg_client).await?;
981981
result
982982
}
983983

@@ -1104,7 +1104,7 @@ mod test {
11041104
).await?;
11051105
verify_brc20_transfers(&vec![(&tx, &transfer)], &mut cache, &client, &ctx).await?
11061106
};
1107-
pg_reset_db(&mut pg_client).await;
1107+
pg_reset_db(&mut pg_client).await?;
11081108
let Some(result) = result.first() else {
11091109
return Ok(None);
11101110
};
@@ -1216,7 +1216,7 @@ mod test {
12161216
.await?;
12171217
verify_brc20_transfers(&vec![(&tx, &transfer)], &mut cache, &client, &ctx).await?
12181218
};
1219-
pg_reset_db(&mut pg_client).await;
1219+
pg_reset_db(&mut pg_client).await?;
12201220
let Some(result) = result.first() else {
12211221
return Ok(None);
12221222
};

components/ordhook-core/src/core/protocol/sequence_cursor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ mod test {
200200

201201
(next.classic, next.jubilee)
202202
};
203-
pg_reset_db(&mut pg_client).await;
203+
pg_reset_db(&mut pg_client).await?;
204204
Ok(result)
205205
}
206206
}

components/ordhook-core/src/db/ordinals_pg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1401,7 +1401,7 @@ mod test {
14011401
assert_eq!(Some(799999), get_chain_tip_block_height(&client).await?);
14021402
}
14031403
}
1404-
pg_reset_db(&mut pg_client).await;
1404+
pg_reset_db(&mut pg_client).await?;
14051405
Ok(())
14061406
}
14071407
}

0 commit comments

Comments
 (0)