Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix typos #214

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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