From 81ee02da3b966d3e9b2642582d9a517b9eb68892 Mon Sep 17 00:00:00 2001 From: Konstantin Lukaschenko Date: Fri, 21 Jun 2019 16:25:09 -0700 Subject: [PATCH] Fix typos Fixing typos --- common/metrics/src/service_metrics.rs | 4 ++-- consensus/src/state_computer.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/metrics/src/service_metrics.rs b/common/metrics/src/service_metrics.rs index 1544f38da4bf..0b62d3cb33c6 100644 --- a/common/metrics/src/service_metrics.rs +++ b/common/metrics/src/service_metrics.rs @@ -12,7 +12,7 @@ For each method, the counters that are captured are: Example use: call `req` when when entering service method, and call `resp` on -exit, with a boolean flag to specifcy whether the request was +exit, with a boolean flag to specify whether the request was a success or a failure, to bump the counter for failures. The call to `req` will provide a timer that handle time logging, as long as it's in scope. @@ -88,7 +88,7 @@ impl ServiceMetrics { pub fn resp(&self, ctx: &RpcContext, success: bool) { // The reason for counting everything here, instead of doing the // if outside of the increment is that we could also compare - // number of responses to number of requsets + // number of responses to number of requests if let Some(name) = path_from_ctx(ctx) { self.num_error .with_label_values(&[name.as_str()]) diff --git a/consensus/src/state_computer.rs b/consensus/src/state_computer.rs index 3029a1020457..52a2f9610ee9 100644 --- a/consensus/src/state_computer.rs +++ b/consensus/src/state_computer.rs @@ -41,7 +41,7 @@ impl ExecutionProxy { pre_execution_instant: Instant, ) -> StateComputeResult { let execution_block_response = execution_proto::ExecuteBlockResponse::from_proto(response) - .expect("Couldn't decode ExcecutionBlockResponse from protobuf"); + .expect("Couldn't decode ExecutionBlockResponse from protobuf"); let execution_duration_ms = pre_execution_instant.elapsed().as_millis(); let num_txns = execution_block_response.status().len(); if num_txns == 0 {