Browse Source

client/keys_bench_test.go: Fix some misspells

Signed-off-by: zhoulin xie <zhoulin.xie@daocloud.io>
zhoulin xie 6 years ago
parent
commit
a943ad0ee4
2 changed files with 2 additions and 2 deletions
  1. 1 1
      client/keys_bench_test.go
  2. 1 1
      etcdserver/api/rafthttp/http.go

+ 1 - 1
client/keys_bench_test.go

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

+ 1 - 1
etcdserver/api/rafthttp/http.go

@@ -131,7 +131,7 @@ func (h *pipelineHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
 		} else {
 		} else {
 			plog.Errorf("failed to unmarshal raft message (%v)", err)
 			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()
 		recvFailures.WithLabelValues(r.RemoteAddr).Inc()
 		return
 		return
 	}
 	}