Highly-opinionated (ex-bullshit-free) MTPROTO proxy for Telegram. If you use v1.0 or upgrade broke you proxy, please read the chapter Version 2
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

noop.go 281B

12345678910111213141516
  1. package timeattack
  2. import (
  3. "time"
  4. "github.com/9seconds/mtg/v2/mtglib"
  5. )
  6. type noop struct{}
  7. func (n noop) Valid(_ time.Time) error { return nil }
  8. // NewNoop returns TimeAttackDetector which accepts all timestamps.
  9. func NewNoop() mtglib.TimeAttackDetector {
  10. return noop{}
  11. }