Add antireplay cache

This commit is contained in:
9seconds
2021-03-15 10:43:32 +03:00
parent ab585fd699
commit ab1b3b4863
7 changed files with 97 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
package antireplay
import "github.com/9seconds/mtg/v2/mtglib"
type noop struct{}
func (n noop) SeenBefore(_ []byte) bool { return false }
func NewNoop() mtglib.AntiReplayCache {
return noop{}
}