diff options
Diffstat (limited to 'tests/plugins/config/plugin3.go')
-rwxr-xr-x | tests/plugins/config/plugin3.go | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/tests/plugins/config/plugin3.go b/tests/plugins/config/plugin3.go deleted file mode 100755 index 41b79259..00000000 --- a/tests/plugins/config/plugin3.go +++ /dev/null @@ -1,34 +0,0 @@ -package config - -import ( - "time" - - "github.com/spiral/errors" - "github.com/spiral/roadrunner/v2/plugins/config" -) - -type Foo3 struct { - configProvider config.Configurer -} - -// Depends on S2 and DB (S3 in the current case) -func (f *Foo3) Init(p config.Configurer) error { - f.configProvider = p - return nil -} - -func (f *Foo3) Serve() chan error { - const op = errors.Op("foo_plugin_serve") - errCh := make(chan error, 1) - - if f.configProvider.GetCommonConfig().GracefulTimeout != time.Second*10 { - errCh <- errors.E(op, errors.Str("GracefulTimeout should be eq to 10 seconds")) - return errCh - } - - return errCh -} - -func (f *Foo3) Stop() error { - return nil -} |