Skip to content

Commit 8103450

Browse files
committed
suppress dead_code warnings on pool-based cert methods used by tests
1 parent d0438d4 commit 8103450

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • crates/gitlawb-node/src/db

‎crates/gitlawb-node/src/db/mod.rs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2049,6 +2049,7 @@ impl Db {
20492049
/// Insert a ref certificate (append-only). The unique constraint on
20502050
/// `(repo_id, seq)` prevents duplicate sequence numbers; callers must
20512051
/// handle retry on collision.
2052+
#[allow(dead_code)]
20522053
pub async fn insert_ref_certificate(&self, cert: &RefCertificate) -> Result<RefCertificate> {
20532054
let row = sqlx::query(
20542055
"INSERT INTO ref_certificates
@@ -2177,6 +2178,7 @@ impl Db {
21772178
Ok(row.map(row_to_cert))
21782179
}
21792180

2181+
#[allow(dead_code)]
21802182
pub async fn get_most_recent_cert(&self, repo_id: &str) -> Result<Option<RefCertificate>> {
21812183
let row = sqlx::query(
21822184
"SELECT id, repo_id, ref_name, old_sha, new_sha, pusher_did, node_did, signature, issued_at, seq, prev, pusher_sig, signature_input, content_digest, request_path
@@ -2209,6 +2211,7 @@ impl Db {
22092211
/// the sequence number allocation.
22102212
/// Uses a transaction-scoped lock (`pg_advisory_xact_lock`) so it MUST
22112213
/// be called within an active transaction to be effective.
2214+
#[allow(dead_code)]
22122215
pub async fn lock_repo_cert_issuance(&self, repo_id: &str) -> Result<()> {
22132216
let hash = repo_lock_hash(repo_id);
22142217
sqlx::query("SELECT pg_advisory_xact_lock($1)")

0 commit comments

Comments
 (0)