Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <[email protected]>
  • Loading branch information
timvaillancourt committed Feb 8, 2025
1 parent c84eee4 commit bb5e29c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions go/vt/vtorc/logic/tablet_discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,10 @@ func OpenTabletDiscovery() <-chan time.Time {
// getAllTablets gets all tablets from all cells using a goroutine per cell. It returns a map of
// cells (string) to slices of tablets (as topo.TabletInfo) and a slice of cells (string) that
// failed to return a result.
func getAllTablets(ctx context.Context, cells []string) (map[string][]*topo.TabletInfo, []string) {
func getAllTablets(ctx context.Context, cells []string) (tabletsByCell map[string][]*topo.TabletInfo, failedCells []string) {
var mu sync.Mutex
failedCells := make([]string, 0, len(cells))
tabletsByCell := make(map[string][]*topo.TabletInfo, len(cells))
failedCells = make([]string, 0, len(cells))
tabletsByCell = make(map[string][]*topo.TabletInfo, len(cells))
eg, ctx := errgroup.WithContext(ctx)
for _, cell := range cells {
eg.Go(func() error {
Expand Down

0 comments on commit bb5e29c

Please sign in to comment.