client/keys_bench_test.go: Fix some misspells

Signed-off-by: zhoulin xie <zhoulin.xie@daocloud.io>
release-3.4
zhoulin xie 2019-03-01 01:01:38 +08:00 committed by Sam Batschelet
parent 5694f3e4f5
commit a943ad0ee4
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ func benchmarkResponseUnmarshalling(b *testing.B, children, size int) {
newResponse := new(Response)
for i := 0; i < b.N; i++ {
if newResponse, err = unmarshalSuccessfulKeysResponse(header, body); err != nil {
b.Errorf("error unmarshaling response (%v)", err)
b.Errorf("error unmarshalling response (%v)", err)
}
}

View File

@ -131,7 +131,7 @@ func (h *pipelineHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
} else {
plog.Errorf("failed to unmarshal raft message (%v)", err)
}
http.Error(w, "error unmarshaling raft message", http.StatusBadRequest)
http.Error(w, "error unmarshalling raft message", http.StatusBadRequest)
recvFailures.WithLabelValues(r.RemoteAddr).Inc()
return
}