mirror of
https://github.com/coredns/coredns.git
synced 2026-02-07 07:53:10 -05:00
refactor(cache): modernize with generics (#7842)
This commit is contained in:
4
plugin/cache/setup.go
vendored
4
plugin/cache/setup.go
vendored
@@ -253,8 +253,8 @@ func cacheParse(c *caddy.Controller) (*Cache, error) {
|
||||
|
||||
ca.Zones = origins
|
||||
ca.zonesMetricLabel = strings.Join(origins, ",")
|
||||
ca.pcache = cache.New(ca.pcap)
|
||||
ca.ncache = cache.New(ca.ncap)
|
||||
ca.pcache = cache.New[*item](ca.pcap)
|
||||
ca.ncache = cache.New[*item](ca.ncap)
|
||||
}
|
||||
|
||||
return ca, nil
|
||||
|
||||
Reference in New Issue
Block a user