client/keys_bench_test.go: Fix some misspells
Signed-off-by: zhoulin xie <zhoulin.xie@daocloud.io>
This commit is contained in:

committed by
Sam Batschelet

parent
5694f3e4f5
commit
a943ad0ee4
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user