Refactor: lrucache use generics
This commit is contained in:
@@ -63,7 +63,7 @@ func withHosts(hosts *trie.DomainTrie) middleware {
|
||||
}
|
||||
}
|
||||
|
||||
func withMapping(mapping *cache.LruCache) middleware {
|
||||
func withMapping(mapping *cache.LruCache[string, string]) middleware {
|
||||
return func(next handler) handler {
|
||||
return func(ctx *context.DNSContext, r *D.Msg) (*D.Msg, error) {
|
||||
q := r.Question[0]
|
||||
|
||||
Reference in New Issue
Block a user