From 76aae20b641a62849f0ca16813e2f6d61c4ae553 Mon Sep 17 00:00:00 2001 From: SataQiu Date: Wed, 7 Nov 2018 17:34:24 +0800 Subject: [PATCH] fix the typos --- internal/ingress/defaults/main.go | 2 +- internal/ingress/metric/collectors/socket.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/ingress/defaults/main.go b/internal/ingress/defaults/main.go index 60965119d..dc135bb4c 100644 --- a/internal/ingress/defaults/main.go +++ b/internal/ingress/defaults/main.go @@ -80,7 +80,7 @@ type Backend struct { // Sets the replacement text that should be changed in the "Location" and "Refresh" header fields of a proxied server response. // http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_redirect - // Default: "" + // Default: off ProxyRedirectTo string `json:"proxy-redirect-to"` // Enables or disables buffering of a client request body. diff --git a/internal/ingress/metric/collectors/socket.go b/internal/ingress/metric/collectors/socket.go index ab27a0071..ed97393a6 100644 --- a/internal/ingress/metric/collectors/socket.go +++ b/internal/ingress/metric/collectors/socket.go @@ -208,11 +208,11 @@ func NewSocketCollector(pod, namespace, class string) (*SocketCollector, error) func (sc *SocketCollector) handleMessage(msg []byte) { glog.V(5).Infof("msg: %v", string(msg)) - // Unmarshall bytes + // Unmarshal bytes var statsBatch []socketData err := jsoniter.ConfigCompatibleWithStandardLibrary.Unmarshal(msg, &statsBatch) if err != nil { - glog.Errorf("Unexpected error deserializing JSON paylod: %v. Payload:\n%v", err, string(msg)) + glog.Errorf("Unexpected error deserializing JSON payload: %v. Payload:\n%v", err, string(msg)) return }