chore: refresh gramsrv public release
This commit is contained in:
parent
75cebe8dbf
commit
70b6820474
1274 changed files with 378751 additions and 59919 deletions
22
internal/rpc/rpc_testkit_clock_test.go
Normal file
22
internal/rpc/rpc_testkit_clock_test.go
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
package rpc
|
||||
|
||||
import (
|
||||
"github.com/gotd/td/clock"
|
||||
"time"
|
||||
)
|
||||
|
||||
type fixedClock struct {
|
||||
now time.Time
|
||||
}
|
||||
|
||||
func (c fixedClock) Now() time.Time {
|
||||
return c.now
|
||||
}
|
||||
|
||||
func (c fixedClock) Timer(d time.Duration) clock.Timer {
|
||||
return clock.System.Timer(d)
|
||||
}
|
||||
|
||||
func (c fixedClock) Ticker(d time.Duration) clock.Ticker {
|
||||
return clock.System.Ticker(d)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue