mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 13:04:02 +03:00
Add timeattack detector
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package timeattack
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/9seconds/mtg/v2/mtglib"
|
||||
)
|
||||
|
||||
type noop struct{}
|
||||
|
||||
func (n noop) Valid(_ time.Time) error { return nil }
|
||||
|
||||
func NewNoop() mtglib.TimeAttackDetector {
|
||||
return noop{}
|
||||
}
|
||||
Reference in New Issue
Block a user