mirror of
https://git.mills.io/saltyim/saltyim.git
synced 2024-06-28 17:51:04 +00:00
Code cleanup
This commit is contained in:
parent
fb2c94dbb8
commit
f5d022df56
@ -221,10 +221,10 @@ func (s *Server) setupCronJobs() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Server) setupServices() {
|
func (s *Server) setupSvcUser() {
|
||||||
time.Sleep(time.Second * 5)
|
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
|
// create or load client for services user
|
||||||
identity := filepath.Join(s.config.Data, servicesIdentity)
|
identity := filepath.Join(s.config.Data, servicesIdentity)
|
||||||
@ -420,7 +420,7 @@ func NewServer(bind string, options ...Option) (*Server, error) {
|
|||||||
server.initRoutes()
|
server.initRoutes()
|
||||||
|
|
||||||
go server.runStartupJobs()
|
go server.runStartupJobs()
|
||||||
go server.setupServices()
|
go server.setupSvcUser()
|
||||||
|
|
||||||
return server, nil
|
return server, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user