add opptimistic sleep on corrosion service start to wait for schema initialisation

This commit is contained in:
Pavel Sviderski
2024-10-04 16:19:07 +10:00
parent fd3ad91136
commit e5bda92ec6
4 changed files with 29 additions and 18 deletions
+1 -1
View File
@@ -170,7 +170,7 @@ func (m *Machine) Run(ctx context.Context) error {
}
slog.Info("Configured corrosion service.", "dir", m.config.CorrosionDir)
if err := m.config.CorrosionService.Start(); err != nil {
if err := m.config.CorrosionService.Start(ctx); err != nil {
return fmt.Errorf("start corrosion service: %w", err)
}
}