Skip to content

Commit

Permalink
Fix get_txs bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzejkop committed Dec 8, 2023
1 parent 5a576a4 commit 07439b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/server/routes/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ pub async fn send_tx(
#[tracing::instrument(skip(app, api_token))]
pub async fn get_txs(
State(app): State<Arc<App>>,
Path((api_token, tx_id)): Path<(ApiKey, String)>,
Path(api_token): Path<ApiKey>,
) -> Result<Json<Vec<GetTxResponse>>, ApiError> {
if !app.is_authorized(&api_token).await? {
return Err(ApiError::Unauthorized);
}

let txs = app.db.read_txs(&tx_id).await?;
let txs = app.db.read_txs(&api_token.relayer_id).await?;

let txs =
txs.into_iter()
Expand Down
1 change: 0 additions & 1 deletion src/tasks/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ pub async fn emit_metrics(app: Arc<App>) -> eyre::Result<()> {
stats.total_indexed_blocks as f64,
&labels
);
metrics::gauge!("block_fees", stats.block_txs as f64, &labels);
metrics::gauge!("block_txs", stats.block_txs as f64, &labels);
}

Expand Down

0 comments on commit 07439b1

Please sign in to comment.