mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 01:34:02 +03:00
Add documentation for timeattack
This commit is contained in:
@@ -10,6 +10,7 @@ type noop struct{}
|
||||
|
||||
func (n noop) Valid(_ time.Time) error { return nil }
|
||||
|
||||
// NewNoop returns TimeAttackDetector which accepts all timestamps.
|
||||
func NewNoop() mtglib.TimeAttackDetector {
|
||||
return noop{}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user