File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11package refresh
22
3- type Equaler [T any ] interface {
3+ type equaler [T any ] interface {
44 Equal (T ) bool
55}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const (
1515// When a diff is observed, the interval resets to the minimum. The interval can be made unchanging by setting
1616// minInterval and maxInterval to the same desired value.
1717
18- type Fetcher [T Equaler [T ]] struct {
18+ type Fetcher [T equaler [T ]] struct {
1919 fetchFunc func (context.Context ) (T , error )
2020 cache T
2121 minInterval time.Duration
@@ -27,7 +27,7 @@ type Fetcher[T Equaler[T]] struct {
2727}
2828
2929// NewFetcher creates a new Fetcher. If minInterval is 0, it will default to 4 seconds.
30- func NewFetcher [T Equaler [T ]](
30+ func NewFetcher [T equaler [T ]](
3131 fetchFunc func (context.Context ) (T , error ),
3232 minInterval time.Duration ,
3333 maxInterval time.Duration ,
You can’t perform that action at this time.
0 commit comments