summaryrefslogtreecommitdiff
path: root/cmd/util/rpc.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/util/rpc.go')
-rw-r--r--cmd/util/rpc.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/cmd/util/rpc.go b/cmd/util/rpc.go
deleted file mode 100644
index cb88943e..00000000
--- a/cmd/util/rpc.go
+++ /dev/null
@@ -1,19 +0,0 @@
-package util
-
-import (
- "errors"
- "net/rpc"
-
- "github.com/spiral/roadrunner/service"
- rrpc "github.com/spiral/roadrunner/service/rpc"
-)
-
-// RPCClient returns RPC client associated with given rr service container.
-func RPCClient(container service.Container) (*rpc.Client, error) {
- svc, st := container.Get(rrpc.ID)
- if st < service.StatusOK {
- return nil, errors.New("RPC service is not configured")
- }
-
- return svc.(*rrpc.Service).Client()
-}