summaryrefslogtreecommitdiff
path: root/service/http/rpc.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-09-30 17:58:16 +0300
committerWolfy-J <[email protected]>2018-09-30 17:58:16 +0300
commit734fab795eb5ee396ee76955c9ddadc4f3b09112 (patch)
treecec3a313fe207c3f91cd142d6d37202ef4db9494 /service/http/rpc.go
parent6122fca108c20984732c969fb1ba53cce5b3c44a (diff)
https and http2 support
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 08b3f262..3390a93d 100644
--- a/service/http/rpc.go
+++ b/service/http/rpc.go
@@ -15,7 +15,7 @@ type WorkerList struct {
// Reset resets underlying RR worker pool and restarts all of it's workers.
func (rpc *rpcServer) Reset(reset bool, r *string) error {
- if rpc.svc == nil || rpc.svc.srv == nil {
+ if rpc.svc == nil || rpc.svc.handler == nil {
return errors.New("http server is not running")
}
@@ -25,7 +25,7 @@ func (rpc *rpcServer) Reset(reset bool, r *string) error {
// Workers returns list of active workers and their stats.
func (rpc *rpcServer) Workers(list bool, r *WorkerList) (err error) {
- if rpc.svc == nil || rpc.svc.srv == nil {
+ if rpc.svc == nil || rpc.svc.handler == nil {
return errors.New("http server is not running")
}