Skip to content

Commit

Permalink
Use len() in make
Browse files Browse the repository at this point in the history
  • Loading branch information
timvaillancourt committed Feb 17, 2025
1 parent 78ccd95 commit aa46ac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vt/vtorc/logic/keyspace_shard_discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func refreshAllShards(ctx context.Context, keyspaceName string) error {
log.Error(err)
return err
}
savedShards := make(map[string]bool)
savedShards := make(map[string]bool, len(shardInfos))
for _, shardInfo := range shardInfos {
err = inst.SaveShard(shardInfo)
if err != nil {
Expand Down

0 comments on commit aa46ac4

Please sign in to comment.