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

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