Skip to content

Commit

Permalink
Address comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
beautifulentropy committed Aug 22, 2023
1 parent 6b64fe8 commit cb3daa6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions redis/lookup.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ func (look *Lookup) Shards(ctx context.Context) (map[string]string, error) {
return newAddrs, nil
}

// ShardsPeriodically periodically performs SRV lookups for the given service
// shardsPeriodically periodically performs SRV lookups for the given service
// name and updates the ring shards accordingly.
func (look *Lookup) ShardsPeriodically(ctx context.Context, frequency time.Duration) {
func (look *Lookup) shardsPeriodically(ctx context.Context, frequency time.Duration) {
ticker := time.NewTicker(frequency)
defer ticker.Stop()

Expand Down Expand Up @@ -150,5 +150,5 @@ func (look *Lookup) Start(ctx context.Context) {
panic(err)
}
look.ring.SetAddrs(addrs)
go look.ShardsPeriodically(ctx, look.updateFrequency)
go look.shardsPeriodically(ctx, look.updateFrequency)
}

0 comments on commit cb3daa6

Please sign in to comment.