Skip to content

Commit d2c65d5

Browse files
committed
fix: Fix typos
1 parent 4589771 commit d2c65d5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

store/boltdb/boltdb_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func TestMultiplePersistConnection(t *testing.T) {
7171
_ = os.Remove("/tmp/not_exist_dir/__boltdbtest")
7272
}
7373

74-
// TestConcurrentConnection tests simultaenous get/put using
74+
// TestConcurrentConnection tests simultaneous get/put using
7575
// two handles.
7676
func TestConcurrentConnection(t *testing.T) {
7777
var err error

store/consul/consul.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const (
2424
RenewSessionRetryMax = 5
2525

2626
// MaxSessionDestroyAttempts is the maximum times we will try
27-
// to explicitely destroy the session attached to a lock after
27+
// to explicitly destroy the session attached to a lock after
2828
// the connectivity to the store has been lost
2929
MaxSessionDestroyAttempts = 5
3030

@@ -429,7 +429,7 @@ func (s *Consul) NewLock(key string, options *store.LockOptions) (store.Locker,
429429
}
430430

431431
// renewLockSession is used to renew a session Lock, it takes
432-
// a stopRenew chan which is used to explicitely stop the session
432+
// a stopRenew chan which is used to explicitly stop the session
433433
// renew process. The renew routine never stops until a signal is
434434
// sent to this channel. If deleting the session fails because the
435435
// connection to the store is lost, it keeps trying to delete the
@@ -449,7 +449,7 @@ func (s *Consul) renewLockSession(initialTTL string, id string, stopRenew chan s
449449
entry, _, err := s.client.Session().Renew(id, nil)
450450
if err != nil {
451451
// If an error occurs, continue until the
452-
// session gets destroyed explicitely or
452+
// session gets destroyed explicitly or
453453
// the session ttl times out
454454
continue
455455
}

0 commit comments

Comments
 (0)