Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
Fixing typos
  • Loading branch information
KonstantinLukaschenko authored and calibra-opensource committed Jun 24, 2019
1 parent 9ce9ff5 commit 81ee02d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions common/metrics/src/service_metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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()])
Expand Down
2 changes: 1 addition & 1 deletion consensus/src/state_computer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 81ee02d

Please sign in to comment.