mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
*: fix minor typos
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
80aa810309
commit
0b2d8a6c96
@ -771,7 +771,7 @@ func TestLeasingTxnOwnerIf(t *testing.T) {
|
||||
t.Fatal(terr)
|
||||
}
|
||||
if tresp.Succeeded != tt.wSucceeded {
|
||||
t.Errorf("#%d: expected succeded %v, got %v", i, tt.wSucceeded, tresp.Succeeded)
|
||||
t.Errorf("#%d: expected succeeded %v, got %v", i, tt.wSucceeded, tresp.Succeeded)
|
||||
}
|
||||
if len(tresp.Responses) != tt.wResponses {
|
||||
t.Errorf("#%d: expected %d responses, got %d", i, tt.wResponses, len(tresp.Responses))
|
||||
|
@ -424,7 +424,7 @@ func applyCompares(rv mvcc.ReadView, cmps []*pb.Compare) bool {
|
||||
// applyCompare applies the compare request.
|
||||
// If the comparison succeeds, it returns true. Otherwise, returns false.
|
||||
func applyCompare(rv mvcc.ReadView, c *pb.Compare) bool {
|
||||
// TOOD: possible optimizations
|
||||
// TODO: possible optimizations
|
||||
// * chunk reads for large ranges to conserve memory
|
||||
// * rewrite rules for common patterns:
|
||||
// ex. "[a, b) createrev > 0" => "limit 1 /\ kvs > 0"
|
||||
|
@ -142,7 +142,7 @@ func (t *Transport) Start() error {
|
||||
t.peers = make(map[types.ID]Peer)
|
||||
t.prober = probing.NewProber(t.pipelineRt)
|
||||
|
||||
// If client didn't provide dial retry frequence, use the default
|
||||
// If client didn't provide dial retry frequency, use the default
|
||||
// (100ms backoff between attempts to create a new stream),
|
||||
// so it doesn't bring too much overhead when retry.
|
||||
if t.DialRetryFrequency == 0 {
|
||||
|
@ -87,7 +87,7 @@ const (
|
||||
|
||||
func init() {
|
||||
if prometheus.Register(readCounter) != nil {
|
||||
// Tests will try to double register sicne the tests use both
|
||||
// Tests will try to double register since the tests use both
|
||||
// store and store_test packages; ignore second attempts.
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user