server: launch new invoiceRegistry goroutines on start up

This commit is contained in:
Olaoluwa Osuntokun committed 2018-07-06 12:22:00 -07:00
1 parent 892a413be3
commit 2c08a22ed3
1 file changed
+5
+5
View File
@@ -753,6 +753,10 @@ func (s *server) Start() error {
}
s.connMgr.Start()
if err := s.invoices.Start(); err != nil {
return err
}
// With all the relevant sub-systems started, we'll now attempt to
// establish persistent connections to our direct channel collaborators
// within the network.
@@ -809,6 +813,7 @@ func (s *server) Stop() error {
s.cc.chainView.Stop()
s.connMgr.Stop()
s.cc.feeEstimator.Stop()
s.invoices.Stop()
// Disconnect from each active peers to ensure that
// peerTerminationWatchers signal completion to each peer.