Skip to content

Commit

Permalink
feat: address review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Manan Gupta <[email protected]>
  • Loading branch information
GuptaManan100 committed Jan 27, 2025
1 parent b51bcc7 commit c405034
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 @@ -81,12 +81,12 @@ func initializeShardsToWatch() error {
continue
}
if !key.IsValidKeyRange(s) {
return fmt.Errorf("Invalid key range %q while parsing clusters to watch", s)
return fmt.Errorf("invalid key range %q while parsing clusters to watch", s)
}
// Parse the shard name into key range value.
keyRanges, err := key.ParseShardingSpec(s)
if err != nil {
return fmt.Errorf("Could not parse shard name %q: %+v", s, err)
return fmt.Errorf("could not parse shard name %q: %+v", s, err)
}
shardsToWatch[k] = append(shardsToWatch[k], keyRanges...)
} else {
Expand Down Expand Up @@ -138,7 +138,7 @@ func OpenTabletDiscovery() <-chan time.Time {
// Parse --clusters_to_watch into a filter.
err := initializeShardsToWatch()
if err != nil {
log.Fatalf("Error parsing clusters to watch: %v", err)
log.Fatalf("Error parsing --clusters-to-watch: %v", err)
}
// We refresh all information from the topo once before we start the ticks to do
// it on a timer.
Expand Down

0 comments on commit c405034

Please sign in to comment.