*: fix minor typos

Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
This commit is contained in:
Gyu-Ho Lee 2017-09-08 18:26:50 -07:00
parent 80aa810309
commit 0b2d8a6c96
4 changed files with 4 additions and 4 deletions

View File

@ -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))

View File

@ -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"

View File

@ -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 {

View File

@ -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
}