Skip to content

Commit 03858b9

Browse files
authored
[api-converter] Fix misspelling with ViewFunction enum (aptos-labs#13158)
1 parent a1822a4 commit 03858b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

api/src/context.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ impl Context {
9898
let log_per_call_stats = node_config.api.periodic_function_stats_sec.is_some();
9999
(
100100
Arc::new(FunctionStats::new(
101-
FunctionType::ViewFuntion,
101+
FunctionType::ViewFunction,
102102
log_per_call_stats,
103103
)),
104104
Arc::new(FunctionStats::new(
@@ -1360,21 +1360,21 @@ pub enum LogEvent {
13601360
}
13611361

13621362
pub enum FunctionType {
1363-
ViewFuntion,
1363+
ViewFunction,
13641364
TxnSimulation,
13651365
}
13661366

13671367
impl FunctionType {
13681368
fn log_event(&self) -> LogEvent {
13691369
match self {
1370-
FunctionType::ViewFuntion => LogEvent::ViewFunction,
1370+
FunctionType::ViewFunction => LogEvent::ViewFunction,
13711371
FunctionType::TxnSimulation => LogEvent::TxnSimulation,
13721372
}
13731373
}
13741374

13751375
fn operation_id(&self) -> &'static str {
13761376
match self {
1377-
FunctionType::ViewFuntion => "view_function",
1377+
FunctionType::ViewFunction => "view_function",
13781378
FunctionType::TxnSimulation => "txn_simulation",
13791379
}
13801380
}

0 commit comments

Comments
 (0)