Skip to content

Commit

Permalink
rename tx pool shared state stats function
Browse files Browse the repository at this point in the history
  • Loading branch information
AurelienFT committed Jan 14, 2025
1 parent 0a7e149 commit af67056
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/fuel-core/src/service/adapters/graphql_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ impl TxPoolPort for TxPoolAdapter {
}

fn latest_pool_stats(&self) -> TxPoolStats {
self.service.get_latest_stats()
self.service.latest_stats()
}
}

Expand Down
2 changes: 1 addition & 1 deletion crates/services/txpool_v2/src/shared_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ impl SharedState {
.try_send(WritePoolRequest::RemoveCoinDependents { transactions });
}

pub fn get_latest_stats(&self) -> TxPoolStats {
pub fn latest_stats(&self) -> TxPoolStats {
*self.latest_stats.borrow()
}
}

0 comments on commit af67056

Please sign in to comment.