mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-27 19:43:34 +00:00
add opptimistic sleep on corrosion service start to wait for schema initialisation
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user