Skip to content

Commit

Permalink
Rm unused func
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
  • Loading branch information
timvaillancourt committed Jun 7, 2024
1 parent 69fe9bb commit d7dd1c6
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions go/vt/throttler/replication_lag_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,6 @@ func newReplicationLagCache(historyCapacityPerReplica int) *replicationLagCache
}
}

// getEntries returns all available entries from the cache.
func (c *replicationLagCache) getEntries() map[string]*replicationLagHistory {
c.mu.Lock()
defer c.mu.Unlock()
return c.entries
}

// add inserts or updates "r" in the cache for the replica with the key "r.Key".
func (c *replicationLagCache) add(r replicationLagRecord) {
c.mu.Lock()
Expand Down

0 comments on commit d7dd1c6

Please sign in to comment.