6
1
mirror of https://git.mills.io/saltyim/saltyim.git synced 2024-06-16 11:58:24 +00:00

Code cleanup

This commit is contained in:
James Mills 2022-03-27 01:31:17 +10:00
parent fb2c94dbb8
commit f5d022df56

@ -221,10 +221,10 @@ func (s *Server) setupCronJobs() error {
return nil
}
func (s *Server) setupServices() {
func (s *Server) setupSvcUser() {
time.Sleep(time.Second * 5)
log.Infof("starting services %s", s.config.SvcUser)
log.Infof("starting service user %s", s.config.SvcUser)
// create or load client for services user
identity := filepath.Join(s.config.Data, servicesIdentity)
@ -420,7 +420,7 @@ func NewServer(bind string, options ...Option) (*Server, error) {
server.initRoutes()
go server.runStartupJobs()
go server.setupServices()
go server.setupSvcUser()
return server, nil
}