diff options
Diffstat (limited to 'plugins/rpc/rpc.go')
-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() |