summaryrefslogtreecommitdiff
path: root/service/http/rpc.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-05-03 12:30:02 +0300
committerWolfy-J <[email protected]>2019-05-03 12:30:02 +0300
commit3454c00ac37a141d7bb8db6990d90606f1bb14b3 (patch)
treeec92ac8717b9efe80fe9b9eb21fbcf986e6443f0 /service/http/rpc.go
parent9b886ceab6a63e8264f2b2c9d35d76628085dbd6 (diff)
added pool watcher capability
Diffstat (limited to 'service/http/rpc.go')
-rw-r--r--service/http/rpc.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/http/rpc.go b/service/http/rpc.go
index 3390a93d..7b38dece 100644
--- a/service/http/rpc.go
+++ b/service/http/rpc.go
@@ -20,7 +20,7 @@ func (rpc *rpcServer) Reset(reset bool, r *string) error {
}
*r = "OK"
- return rpc.svc.rr.Reset()
+ return rpc.svc.Server().Reset()
}
// Workers returns list of active workers and their stats.
@@ -29,6 +29,6 @@ func (rpc *rpcServer) Workers(list bool, r *WorkerList) (err error) {
return errors.New("http server is not running")
}
- r.Workers, err = util.ServerState(rpc.svc.rr)
+ r.Workers, err = util.ServerState(rpc.svc.Server())
return err
}