diff options
author | Valery Piashchynski <[email protected]> | 2021-06-18 12:00:05 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-06-18 12:00:05 +0300 |
commit | 9e8bad3988c1fec2e545898d529446f7b93e537b (patch) | |
tree | d91159b8c78c8add1981641499ef81c821d5d363 /plugins/memory/plugin.go | |
parent | fe7bb0fe758d573fe353df028257ed66c6eccf66 (diff) |
- Rework finished
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/memory/plugin.go')
-rw-r--r-- | plugins/memory/plugin.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/memory/plugin.go b/plugins/memory/plugin.go index d4d535bf..70badf15 100644 --- a/plugins/memory/plugin.go +++ b/plugins/memory/plugin.go @@ -2,7 +2,7 @@ package memory import ( "github.com/spiral/errors" - "github.com/spiral/roadrunner/v2/pkg/interface/pubsub" + "github.com/spiral/roadrunner/v2/pkg/pubsub" "github.com/spiral/roadrunner/v2/plugins/config" "github.com/spiral/roadrunner/v2/plugins/kv" "github.com/spiral/roadrunner/v2/plugins/logger" @@ -41,11 +41,11 @@ func (p *Plugin) Stop() error { return nil } -func (p *Plugin) PSProvide(key string) (pubsub.PubSub, error) { +func (p *Plugin) PSConstruct(key string) (pubsub.PubSub, error) { return NewPubSubDriver(p.log, key) } -func (p *Plugin) KVProvide(key string) (kv.Storage, error) { +func (p *Plugin) KVConstruct(key string) (kv.Storage, error) { const op = errors.Op("inmemory_plugin_provide") st, err := NewInMemoryDriver(p.log, key, p.cfgPlugin, p.stop) if err != nil { |