1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-08 05:57:03 +09:00
This commit is contained in:
Anatolii Smolianinov 2025-04-04 16:23:48 +02:00
parent 121cd7ac9c
commit ac6941ba7a
No known key found for this signature in database
GPG key ID: 2DFC2826A71FE8A0

View file

@ -249,7 +249,6 @@ func (app *App) Start(ctx context.Context) (err error) {
}
for i, s := range app.components {
fmt.Printf("init service %s\n", s.Name())
if err = s.Init(app); err != nil {
log.Error("can't init service", zap.String("service", s.Name()), zap.Error(err))
closeServices(i)
@ -260,7 +259,6 @@ func (app *App) Start(ctx context.Context) (err error) {
for i, s := range app.components {
if serviceRun, ok := s.(ComponentRunnable); ok {
start := time.Now()
fmt.Printf("run service %s\n", s.Name())
if err = serviceRun.Run(ctx); err != nil {
log.Error("can't run service", zap.String("service", serviceRun.Name()), zap.Error(err))
closeServices(i)