mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
client/keys_bench_test.go: Fix some misspells
Signed-off-by: zhoulin xie <zhoulin.xie@daocloud.io>
This commit is contained in:
parent
5694f3e4f5
commit
a943ad0ee4
@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user