diff --git a/config.go b/config.go index c0d0e19..c5ef9dc 100644 --- a/config.go +++ b/config.go @@ -108,11 +108,6 @@ func WithStrategies(strategies ...strategy.Strategy) ConfigOption { o.strategies = strategies } } -func WithStarted(startedAt time.Time) ConfigOption { - return func(o *configOption) { - o.started = &startedAt - } -} // WithStorage specifies which storage implementation the repository should use for storing feature // toggles. diff --git a/metrics_test.go b/metrics_test.go index 270d3b5..d346a0f 100644 --- a/metrics_test.go +++ b/metrics_test.go @@ -22,6 +22,12 @@ import ( "github.com/stretchr/testify/mock" ) +func WithStarted(startedAt time.Time) ConfigOption { + return func(o *configOption) { + o.started = &startedAt + } +} + func TestMetrics_RegisterInstance(t *testing.T) { assert := assert.New(t) defer gock.OffAll()