Skip to content

Commit

Permalink
proxy: imp code
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Dec 18, 2023
1 parent df5863b commit 5cbb56e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions proxy/exchange_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ type fakeClock struct {
onNow func() (now time.Time)
}

// type check
var _ Clock = (*fakeClock)(nil)

// Now implements the [Clock] interface for *fakeClock.
func (c *fakeClock) Now() (now time.Time) { return c.onNow() }

Expand Down

0 comments on commit 5cbb56e

Please sign in to comment.