Skip to content

Commit

Permalink
[api-converter] Fix misspelling with ViewFunction enum (#13158)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregnazario committed May 6, 2024
1 parent a1822a4 commit 03858b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl Context {
let log_per_call_stats = node_config.api.periodic_function_stats_sec.is_some();
(
Arc::new(FunctionStats::new(
FunctionType::ViewFuntion,
FunctionType::ViewFunction,
log_per_call_stats,
)),
Arc::new(FunctionStats::new(
Expand Down Expand Up @@ -1360,21 +1360,21 @@ pub enum LogEvent {
}

pub enum FunctionType {
ViewFuntion,
ViewFunction,
TxnSimulation,
}

impl FunctionType {
fn log_event(&self) -> LogEvent {
match self {
FunctionType::ViewFuntion => LogEvent::ViewFunction,
FunctionType::ViewFunction => LogEvent::ViewFunction,
FunctionType::TxnSimulation => LogEvent::TxnSimulation,
}
}

fn operation_id(&self) -> &'static str {
match self {
FunctionType::ViewFuntion => "view_function",
FunctionType::ViewFunction => "view_function",
FunctionType::TxnSimulation => "txn_simulation",
}
}
Expand Down

0 comments on commit 03858b9

Please sign in to comment.