Skip to content

Commit

Permalink
comment nit
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Demmer <mdemmer@slack-corp.com>
  • Loading branch information
demmer committed Apr 26, 2024
1 parent 9f1e23a commit d43907a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vt/vtgate/tabletgateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ func (gw *TabletGateway) shuffleTablets(cell string, tablets []*discovery.Tablet
// Randomly shuffle the list of tablets, putting the same-cell hosts at the front
// of the list and the other-cell hosts at the back
//
// Only need to do n-1 swaps since the last host is always in the right place.
// Only need to do n-1 swaps since the last tablet is always in the right place.
n := len(tablets)
head := 0
tail := n - 1
Expand Down

0 comments on commit d43907a

Please sign in to comment.