summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/rpc/rpc.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/rpc/rpc.go b/plugins/rpc/rpc.go
index a423da2c..ef8e82e4 100644
--- a/plugins/rpc/rpc.go
+++ b/plugins/rpc/rpc.go
@@ -38,15 +38,16 @@ func (s *Service) Init(cfg config.Provider) error {
}
s.config.InitDefaults()
- s.close = make(chan struct{})
// todo: handle disabled
- return nil
+ return s.config.Valid()
}
// Serve serves the service.
func (s *Service) Serve() chan error {
+ s.close = make(chan struct{})
+
errCh := make(chan error, 1)
server := rpc.NewServer()