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
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

noop.go 352B

12345678910111213
  1. package antireplay
  2. import "github.com/9seconds/mtg/v2/mtglib"
  3. type noop struct{}
  4. func (n noop) SeenBefore(_ []byte) bool { return false }
  5. // NewNoop returns an implementation that does nothing. A corresponding method
  6. // always returns false, so this cache accepts everything you pass to it.
  7. func NewNoop() mtglib.AntiReplayCache {
  8. return noop{}
  9. }