diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/roadrunner.go | 4 | ||||
-rw-r--r-- | lib/roadrunner_test.go | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/roadrunner.go b/lib/roadrunner.go index cbbb7414..0353ae83 100644 --- a/lib/roadrunner.go +++ b/lib/roadrunner.go @@ -22,7 +22,7 @@ type RR struct { } // NewRR creates a new RR instance that can then be started or stopped by the caller -func NewRR(cfgFile string, override []string, pluginList []interface{}) (*RR, error) { +func NewRR(cfgFile string, override []string, pluginList []any) (*RR, error) { // create endure container config containerCfg, err := container.NewConfig(cfgFile) if err != nil { @@ -89,7 +89,7 @@ func (rr *RR) Stop() { } // DefaultPluginsList returns all the plugins that RR can run with and are included by default -func DefaultPluginsList() []interface{} { +func DefaultPluginsList() []any { return container.Plugins() } diff --git a/lib/roadrunner_test.go b/lib/roadrunner_test.go index 9406b7bf..64655189 100644 --- a/lib/roadrunner_test.go +++ b/lib/roadrunner_test.go @@ -49,7 +49,7 @@ func TestNewWithConfig(t *testing.T) { func TestServeStop(t *testing.T) { cfgFile := makeConfig(t, testConfig) - plugins := []interface{}{ + plugins := []any{ &informer.Plugin{}, &resetter.Plugin{}, } |