fixed some typos in comments and Dockerfile (#25)

Signed-off-by: Markus Jais <markusjais@googlemail.com>
This commit is contained in:
Markus Jais 2018-07-25 22:10:59 +02:00 committed by Brian Smith
parent 9a19457ca1
commit 7788f60e0e
7 changed files with 7 additions and 7 deletions

View File

@ -5,7 +5,7 @@
# #
# When PROXY_UNOPTIMIZED is set and not empty, unoptimized rust artifacts are produced. # 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 # 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 RUST_IMAGE=rust:1.27.1
ARG RUNTIME_IMAGE=gcr.io/linkerd-io/base:2017-10-30.01 ARG RUNTIME_IMAGE=gcr.io/linkerd-io/base:2017-10-30.01

View File

@ -69,7 +69,7 @@ where
/// requests. The `BindsPerRequest` binding ensures that a new stack is bound for each /// requests. The `BindsPerRequest` binding ensures that a new stack is bound for each
/// request. /// 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<B> pub enum Binding<B>
where where
B: tower_h2::Body + Send + 'static, B: tower_h2::Body + Send + 'static,

View File

@ -7,7 +7,7 @@ use conditional::Conditional;
/// An individual traffic target. /// 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)] #[derive(Clone, Debug, PartialEq, Eq)]
pub struct Endpoint { pub struct Endpoint {
address: SocketAddr, address: SocketAddr,

View File

@ -28,7 +28,7 @@ pub struct MakeControl {
/// `Control` exposes a `Stream` that summarizes events accumulated over the past /// `Control` exposes a `Stream` that summarizes events accumulated over the past
/// `flush_interval`. /// `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 /// well as_ for Tap, which supports subscribing to a stream of events that match
/// criteria. /// criteria.
/// ///

View File

@ -17,7 +17,7 @@ pub use self::sensor::Sensors;
/// Creates proxy-specific runtime telemetry. /// 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. /// that support telemetry.
/// ///
/// [`Control`] drives processing of all telemetry events for tapping as well as metrics /// [`Control`] drives processing of all telemetry events for tapping as well as metrics

View File

@ -28,7 +28,7 @@ impl Protocol {
let mut headers = [httparse::EMPTY_HEADER; 0]; let mut headers = [httparse::EMPTY_HEADER; 0];
let mut req = httparse::Request::new(&mut headers); let mut req = httparse::Request::new(&mut headers);
match req.parse(bytes) { 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, // 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! // because we passed an array of 0 headers to parse into. That's fine!

View File

@ -311,7 +311,7 @@ fn metrics_endpoint_inbound_response_latency() {
assert_contains!(metrics.get("/metrics"), 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"); "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* // 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. // other buckets.
assert_contains!(metrics.get("/metrics"), 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"); "response_latency_ms_bucket{authority=\"tele.test.svc.cluster.local\",direction=\"inbound\",tls=\"disabled\",classification=\"success\",status_code=\"200\",le=\"1000\"} 2");