diff options
author | Valery Piashchynski <[email protected]> | 2020-12-20 17:42:56 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-12-20 17:42:56 +0300 |
commit | fe0109a3b19ee82bd7bfbb57eae6b5b5166d7068 (patch) | |
tree | 52fd2960cb440c99163738fcfeeb6df465662155 /plugins/rpc | |
parent | 349088db2081704e15699ce1e6f6b1f8898bd336 (diff) |
Latest goridge version support
Diffstat (limited to 'plugins/rpc')
-rwxr-xr-x | plugins/rpc/plugin.go | 6 | ||||
-rw-r--r-- | plugins/rpc/tests/plugin2.go | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/plugins/rpc/plugin.go b/plugins/rpc/plugin.go index c8e63496..98242ade 100755 --- a/plugins/rpc/plugin.go +++ b/plugins/rpc/plugin.go @@ -7,7 +7,7 @@ import ( "github.com/spiral/endure" "github.com/spiral/errors" - "github.com/spiral/goridge/v3" + goridgeRpc "github.com/spiral/goridge/v3/pkg/rpc" "github.com/spiral/roadrunner/v2/interfaces/log" rpc_ "github.com/spiral/roadrunner/v2/interfaces/rpc" "github.com/spiral/roadrunner/v2/plugins/config" @@ -100,7 +100,7 @@ func (s *Plugin) Serve() chan error { return } - go s.rpc.ServeCodec(goridge.NewCodec(conn)) + go s.rpc.ServeCodec(goridgeRpc.NewCodec(conn)) } }() @@ -161,5 +161,5 @@ func (s *Plugin) Client() (*rpc.Client, error) { return nil, err } - return rpc.NewClientWithCodec(goridge.NewClientCodec(conn)), nil + return rpc.NewClientWithCodec(goridgeRpc.NewClientCodec(conn)), nil } diff --git a/plugins/rpc/tests/plugin2.go b/plugins/rpc/tests/plugin2.go index 347e0330..411b9c54 100644 --- a/plugins/rpc/tests/plugin2.go +++ b/plugins/rpc/tests/plugin2.go @@ -6,7 +6,7 @@ import ( "time" "github.com/spiral/errors" - "github.com/spiral/goridge/v3" + goridgeRpc "github.com/spiral/goridge/v3/pkg/rpc" ) // plugin2 makes a call to the plugin1 via RPC @@ -30,7 +30,7 @@ func (p2 *Plugin2) Serve() chan error { errCh <- errors.E(errors.Serve, err) return } - client := rpc.NewClientWithCodec(goridge.NewClientCodec(conn)) + client := rpc.NewClientWithCodec(goridgeRpc.NewClientCodec(conn)) var ret string err = client.Call("rpc_test.plugin1.Hello", "Valery", &ret) if err != nil { |