Merge pull request #3377 from SataQiu/fix-20181107
Fix typos and default value
This commit is contained in:
commit
b5a43db683
2 changed files with 3 additions and 3 deletions
|
@ -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.
|
// 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
|
// http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_redirect
|
||||||
// Default: ""
|
// Default: off
|
||||||
ProxyRedirectTo string `json:"proxy-redirect-to"`
|
ProxyRedirectTo string `json:"proxy-redirect-to"`
|
||||||
|
|
||||||
// Enables or disables buffering of a client request body.
|
// Enables or disables buffering of a client request body.
|
||||||
|
|
|
@ -208,11 +208,11 @@ func NewSocketCollector(pod, namespace, class string) (*SocketCollector, error)
|
||||||
func (sc *SocketCollector) handleMessage(msg []byte) {
|
func (sc *SocketCollector) handleMessage(msg []byte) {
|
||||||
glog.V(5).Infof("msg: %v", string(msg))
|
glog.V(5).Infof("msg: %v", string(msg))
|
||||||
|
|
||||||
// Unmarshall bytes
|
// Unmarshal bytes
|
||||||
var statsBatch []socketData
|
var statsBatch []socketData
|
||||||
err := jsoniter.ConfigCompatibleWithStandardLibrary.Unmarshal(msg, &statsBatch)
|
err := jsoniter.ConfigCompatibleWithStandardLibrary.Unmarshal(msg, &statsBatch)
|
||||||
if err != nil {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue