Implement caching dns resolver

This commit is contained in:
9seconds
2021-03-30 14:14:37 +03:00
parent 841a4d2227
commit 10b78322a3
16 changed files with 163 additions and 47 deletions
-1
View File
@@ -5,7 +5,6 @@ import "github.com/9seconds/mtg/v2/mtglib"
type noop struct{}
func (n noop) SeenBefore(_ []byte) bool { return false }
func (n noop) Shutdown() {}
func NewNoop() mtglib.AntiReplayCache {
return noop{}