FILE / ScuroNeko/mtg

timeattack/init.go

Исходный файл и его история в репозитории.
FILE b748603096e6f27a8acb8f25e2dfd4905aee57a0
Files
mtg/timeattack/init.go
T
2021-04-06 12:00:14 +03:00

11 lines
313 B
Go

// TimeAttack has implementation of mtglib.TimeAttackDetector.
package timeattack
import "time"
// DefaultDuration is a default duration when timestamps are acceptable.
//
// It means that all timestamps which are X-DefaultDuration <= X <=
// X+DefaultDuration are fine.
const DefaultDuration = 5 * time.Second