diff --git a/Dockerfile b/Dockerfile index e25b47d1f..744fe7123 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ # # When PROXY_UNOPTIMIZED is set and not empty, unoptimized rust artifacts are produced. # This reduces build time and produces binaries with debug symbols, at the expense of -# runtime perforamnce. +# runtime performance. ARG RUST_IMAGE=rust:1.27.1 ARG RUNTIME_IMAGE=gcr.io/linkerd-io/base:2017-10-30.01 diff --git a/src/bind.rs b/src/bind.rs index 7f09ad70e..b44138574 100644 --- a/src/bind.rs +++ b/src/bind.rs @@ -69,7 +69,7 @@ where /// requests. The `BindsPerRequest` binding ensures that a new stack is bound for each /// request. /// -/// `Bound` serivces may be used to process an arbitrary number of requests. +/// `Bound` services may be used to process an arbitrary number of requests. pub enum Binding where B: tower_h2::Body + Send + 'static, diff --git a/src/control/destination/endpoint.rs b/src/control/destination/endpoint.rs index 6d45b0bbe..2e7c3b537 100644 --- a/src/control/destination/endpoint.rs +++ b/src/control/destination/endpoint.rs @@ -7,7 +7,7 @@ use conditional::Conditional; /// An individual traffic target. /// -/// Equality, Ordering, and hashability is determined soley by the Endpoint's address. +/// Equality, Ordering, and hashability is determined solely by the Endpoint's address. #[derive(Clone, Debug, PartialEq, Eq)] pub struct Endpoint { address: SocketAddr, diff --git a/src/telemetry/control.rs b/src/telemetry/control.rs index 7af04150c..f2cc038a0 100644 --- a/src/telemetry/control.rs +++ b/src/telemetry/control.rs @@ -28,7 +28,7 @@ pub struct MakeControl { /// `Control` exposes a `Stream` that summarizes events accumulated over the past /// `flush_interval`. /// -/// As `Control` is polled, events are proceesed for the purposes of metrics export _as +/// As `Control` is polled, events are processed for the purposes of metrics export _as /// well as_ for Tap, which supports subscribing to a stream of events that match /// criteria. /// diff --git a/src/telemetry/mod.rs b/src/telemetry/mod.rs index fd4c5220c..02131171c 100644 --- a/src/telemetry/mod.rs +++ b/src/telemetry/mod.rs @@ -17,7 +17,7 @@ pub use self::sensor::Sensors; /// Creates proxy-specific runtime telemetry. /// -/// [`Sensors`] hide the details of how telemetry is recorded, but expose proxy utilties +/// [`Sensors`] hide the details of how telemetry is recorded, but expose proxy utilities /// that support telemetry. /// /// [`Control`] drives processing of all telemetry events for tapping as well as metrics diff --git a/src/transparency/protocol.rs b/src/transparency/protocol.rs index 77c4940de..468b5f3c6 100644 --- a/src/transparency/protocol.rs +++ b/src/transparency/protocol.rs @@ -28,7 +28,7 @@ impl Protocol { let mut headers = [httparse::EMPTY_HEADER; 0]; let mut req = httparse::Request::new(&mut headers); match req.parse(bytes) { - // Ok(Compelete) or Ok(Partial) both mean it looks like HTTP1! + // Ok(Complete) or Ok(Partial) both mean it looks like HTTP1! // // If we got past the first line, we'll see TooManyHeaders, // because we passed an array of 0 headers to parse into. That's fine! diff --git a/tests/telemetry.rs b/tests/telemetry.rs index 82bb8de09..059951531 100644 --- a/tests/telemetry.rs +++ b/tests/telemetry.rs @@ -311,7 +311,7 @@ fn metrics_endpoint_inbound_response_latency() { assert_contains!(metrics.get("/metrics"), "response_latency_ms_bucket{authority=\"tele.test.svc.cluster.local\",direction=\"inbound\",tls=\"disabled\",classification=\"success\",status_code=\"200\",le=\"50\"} 1"); // 1000ms bucket should be incremented as well, since it counts *all* - // bservations less than or equal to 1000ms, even if they also increment + // observations less than or equal to 1000ms, even if they also increment // other buckets. assert_contains!(metrics.get("/metrics"), "response_latency_ms_bucket{authority=\"tele.test.svc.cluster.local\",direction=\"inbound\",tls=\"disabled\",classification=\"success\",status_code=\"200\",le=\"1000\"} 2");