mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-08 06:09:17 +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
@@ -64,11 +64,11 @@ func (nc *networkController) Run(ctx context.Context) error {
|
||||
|
||||
if nc.corroService.Running() {
|
||||
// Corrosion service was running before the WireGuard network was configured so we need to restart it.
|
||||
if err := nc.corroService.Restart(); err != nil {
|
||||
if err := nc.corroService.Restart(ctx); err != nil {
|
||||
return fmt.Errorf("restart corrosion service: %w", err)
|
||||
}
|
||||
} else {
|
||||
if err := nc.corroService.Start(); err != nil {
|
||||
if err := nc.corroService.Start(ctx); err != nil {
|
||||
return fmt.Errorf("start corrosion service: %w", err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user