Skip to content

Commit

Permalink
Address review comment
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Lord <mattalord@gmail.com>
  • Loading branch information
mattlord committed Jul 8, 2024
1 parent a84e907 commit 8de719a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions go/vt/topo/locks.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,21 +130,21 @@ var locksKey locksKeyType
type LockType int

const (
Blocking LockType = iota
NonBlocking
Named
// Blocking is the default lock type when no other valid type
// is specified.
Blocking LockType = iota
NonBlocking // Uses TryLock
Named // Uses LockName
)

func (lt LockType) String() string {
switch lt {
case Blocking:
return "blocking"
case NonBlocking:
return "non blocking"
case Named:
return "named"
default:
return "unknown"
return "blocking"
}
}

Expand Down

0 comments on commit 8de719a

Please sign in to comment.