Skip to content

Commit de6aca0

Browse files
apollo_l1_gas_price: rename EthToStrkOracle references to PriceOracle
1 parent d0ce558 commit de6aca0

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

crates/apollo_consensus_orchestrator/src/build_proposal.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ pub(crate) enum BuildProposalError {
9393
RetrospectiveBlockHashError(#[from] RetrospectiveBlockHashError),
9494
#[error("Failed to send proposal part: {0}")]
9595
SendError(String),
96-
#[error("EthToStrkOracle error: {0}")]
97-
EthToStrkOracle(#[from] PriceOracleClientError),
96+
#[error("PriceOracle error: {0}")]
97+
PriceOracle(#[from] PriceOracleClientError),
9898
#[error("L1GasPriceProvider error: {0}")]
9999
L1GasPriceProvider(#[from] L1GasPriceClientError),
100100
#[error("Proposal interrupted.")]

crates/apollo_consensus_orchestrator/src/validate_proposal.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ pub(crate) enum ValidateProposalError {
110110
// Consensus may exit early (e.g. sync).
111111
#[error("Failed to send commitment to consensus: {0}")]
112112
SendError(ProposalCommitment),
113-
#[error("EthToStrkOracle error: {0}")]
114-
EthToStrkOracle(#[from] PriceOracleClientError),
113+
#[error("PriceOracle error: {0}")]
114+
PriceOracle(#[from] PriceOracleClientError),
115115
#[error("L1GasPriceProvider error: {0}")]
116116
L1GasPriceProvider(#[from] L1GasPriceClientError),
117117
#[error("ProposalInit conversion error: {0}")]

crates/apollo_l1_gas_price/src/price_oracle.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pub struct PriceOracleClient {
7070
impl PriceOracleClient {
7171
pub fn new(config: PriceOracleConfig) -> Self {
7272
info!(
73-
"Creating EthToStrkOracleClient with: urls={:?} lag_interval_seconds={}",
73+
"Creating PriceOracleClient with: urls={:?} lag_interval_seconds={}",
7474
config.url_header_list, config.lag_interval_seconds
7575
);
7676
register_eth_to_strk_metrics();

0 commit comments

Comments
 (0)