Skip to content

Commit

Permalink
fix: Fix typos
Browse files Browse the repository at this point in the history
Signed-off-by: HowJMay <[email protected]>
  • Loading branch information
howjmay committed Jan 20, 2020
1 parent 4589771 commit 1094050
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion store/boltdb/boltdb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func TestMultiplePersistConnection(t *testing.T) {
_ = os.Remove("/tmp/not_exist_dir/__boltdbtest")
}

// TestConcurrentConnection tests simultaenous get/put using
// TestConcurrentConnection tests simultaneous get/put using
// two handles.
func TestConcurrentConnection(t *testing.T) {
var err error
Expand Down
6 changes: 3 additions & 3 deletions store/consul/consul.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const (
RenewSessionRetryMax = 5

// MaxSessionDestroyAttempts is the maximum times we will try
// to explicitely destroy the session attached to a lock after
// to explicitly destroy the session attached to a lock after
// the connectivity to the store has been lost
MaxSessionDestroyAttempts = 5

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

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

0 comments on commit 1094050

Please sign in to comment.