Skip to content

Commit

Permalink
refactor(inclusion_monitor): use non macro
Browse files Browse the repository at this point in the history
CI checks fail otherwise. Would be nice to fix.
  • Loading branch information
alextes committed Dec 13, 2023
1 parent cf1d451 commit e34efc9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/phoenix/inclusion_monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ pub async fn proposer_label_meta(
pg_pool: &PgPool,
proposer_pubkey: &str,
) -> anyhow::Result<ProposerLabelMeta> {
sqlx::query_as!(
ProposerLabelMeta,
sqlx::query_as::<_, ProposerLabelMeta>(
"
SELECT
label,
Expand All @@ -129,8 +128,8 @@ pub async fn proposer_label_meta(
FROM validators
WHERE pubkey = $1
",
proposer_pubkey
)
.bind(proposer_pubkey)
.fetch_optional(pg_pool)
.await
.map(|row| row.unwrap_or_default())
Expand Down

0 comments on commit e34efc9

Please sign in to comment.