Skip to content
This repository has been archived by the owner on Jul 21, 2021. It is now read-only.

Commit

Permalink
tryLock comment
Browse files Browse the repository at this point in the history
  • Loading branch information
yaronsumel committed Jul 29, 2017
1 parent 6088637 commit 737c0a5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion zk/lock.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var (
// ErrNotLocked is returned by Unlock when trying to release a lock that has not first be acquired.
ErrNotLocked = errors.New("zk: not locked")
// ErrTimeout is returned by Lock when trying to lock and timeout is reached before lock is acquired.
ErrTimeout = errors.New("zk: ErrTimeout")
ErrTimeout = errors.New("zk: acquire timeout")
)

// Lock is a mutual exclusion lock.
Expand Down
1 change: 0 additions & 1 deletion zk/lock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ func TestTryLock(t *testing.T) {
}
}


func TestLock(t *testing.T) {
ts, err := StartTestCluster(1, nil, logWriter{t: t, p: "[ZKERR] "})
if err != nil {
Expand Down

0 comments on commit 737c0a5

Please sign in to comment.