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:
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user