mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-06 13:18:58 +00:00
add opptimistic sleep on corrosion service start to wait for schema initialisation
This commit is contained in:
1 parent
fd3ad91136
commit
e5bda92ec6
4 files changed
+29
-18
No files matched your search
@@ -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