diff options
author | Valery Piashchynski <[email protected]> | 2022-08-22 12:21:48 +0200 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2022-08-22 12:21:48 +0200 |
commit | 5c6cb57cb5eb1dad83c907d6f94536dc626e64d5 (patch) | |
tree | 9be735c2222e35a21947c92a040449e486f39252 | |
parent | 6a57268eafbc1407e4b242d0458a6df659c523d1 (diff) |
feat: interface{} -> any{}
Signed-off-by: Valery Piashchynski <[email protected]>
-rw-r--r-- | container/plugins.go | 4 | ||||
-rw-r--r-- | lib/roadrunner.go | 4 | ||||
-rw-r--r-- | lib/roadrunner_test.go | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/container/plugins.go b/container/plugins.go index f8c0b4b0..82225b6b 100644 --- a/container/plugins.go +++ b/container/plugins.go @@ -40,8 +40,8 @@ import ( ) // Plugins returns active plugins for the endure container. Feel free to add or remove any plugins. -func Plugins() []interface{} { //nolint:funlen - return []interface{}{ +func Plugins() []any { //nolint:funlen + return []any{ // bundled // informer plugin (./rr workers, ./rr workers -i) &informer.Plugin{}, 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{}, } |