mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-06 21:29:02 +00:00
fix(machine): correctly recreate machine in store if missing, improve context handling
This commit is contained in:
1 parent
8aa0a96c23
commit
5f07bc5832
2 files changed
+22
-18
No files matched your search
@@ -49,8 +49,6 @@ func (s *Service) WatchDaemonRestart(ctx context.Context) <-chan struct{} {
|
||||
ch := make(chan struct{}, 1)
|
||||
|
||||
go func() {
|
||||
defer close(ch)
|
||||
|
||||
boff := backoff.WithContext(backoff.NewExponentialBackOff(
|
||||
backoff.WithInitialInterval(1*time.Second),
|
||||
backoff.WithMaxInterval(30*time.Second),
|
||||
|
||||
Reference in new issue
Block a user