From a943ad0ee4c98d83f2d5115f16ca0de321246ddc Mon Sep 17 00:00:00 2001 From: zhoulin xie Date: Fri, 1 Mar 2019 01:01:38 +0800 Subject: [PATCH] client/keys_bench_test.go: Fix some misspells Signed-off-by: zhoulin xie --- client/keys_bench_test.go | 2 +- etcdserver/api/rafthttp/http.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/keys_bench_test.go b/client/keys_bench_test.go index f8ca3ea3321..ff136033452 100644 --- a/client/keys_bench_test.go +++ b/client/keys_bench_test.go @@ -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) } } diff --git a/etcdserver/api/rafthttp/http.go b/etcdserver/api/rafthttp/http.go index 480b96d7d60..18e9c53f24c 100644 --- a/etcdserver/api/rafthttp/http.go +++ b/etcdserver/api/rafthttp/http.go @@ -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 }