Skip to content

Commit 501bb07

Browse files
authored
Merge pull request #11161 from yaojingguo/remove-slash
clientv3/concurrency: remove the unneeded slash
2 parents 8383152 + e53298a commit 501bb07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clientv3/concurrency/example_mutex_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ func ExampleMutex_TryLock() {
3636
log.Fatal(err)
3737
}
3838
defer s1.Close()
39-
m1 := concurrency.NewMutex(s1, "/my-lock/")
39+
m1 := concurrency.NewMutex(s1, "/my-lock")
4040

4141
s2, err := concurrency.NewSession(cli)
4242
if err != nil {
4343
log.Fatal(err)
4444
}
4545
defer s2.Close()
46-
m2 := concurrency.NewMutex(s2, "/my-lock/")
46+
m2 := concurrency.NewMutex(s2, "/my-lock")
4747

4848
// acquire lock for s1
4949
if err = m1.Lock(context.TODO()); err != nil {

0 commit comments

Comments
 (0)