fix the typos

This commit is contained in:
SataQiu 2018-11-07 17:34:24 +08:00
parent 0d102812fd
commit 76aae20b64
2 changed files with 3 additions and 3 deletions

View file

@ -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.

View file

@ -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
}