summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2020-10-25 12:04:22 +0300
committerWolfy-J <[email protected]>2020-10-25 12:04:22 +0300
commit3bdf7d02d83d1ff4726f3fbb01a45d016f39abec (patch)
tree4fa8e406e7f95d6bbbbcee005d23f395b09c2ea9 /plugins
parentce661a00ebb29b387ad3dbb17f16324d3882a713 (diff)
- validate config
Diffstat (limited to 'plugins')
-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()