diff options
author | Wolfy-J <[email protected]> | 2020-10-25 12:04:22 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2020-10-25 12:04:22 +0300 |
commit | 3bdf7d02d83d1ff4726f3fbb01a45d016f39abec (patch) | |
tree | 4fa8e406e7f95d6bbbbcee005d23f395b09c2ea9 /plugins/rpc | |
parent | ce661a00ebb29b387ad3dbb17f16324d3882a713 (diff) |
- validate config
Diffstat (limited to 'plugins/rpc')
-rw-r--r-- | plugins/rpc/rpc.go | 5 |
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() |