Skip to content

Commit

Permalink
fix: remove erroneous wg.Add in environment controller
Browse files Browse the repository at this point in the history
With that extra `wg.Add` controller was hanging forever on `wg.Wait()`
every time URL was changed.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
  • Loading branch information
smira authored and talos-bot committed Apr 22, 2021
1 parent 74d9bf9 commit 37e4ab7
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ func (r *EnvironmentReconciler) reconcile(req ctrl.Request) (ctrl.Result, error)
// At this point the file exists, but the URL for the file has changed. We
// need to update the file using the new URL.

wg.Add(1)
l.Info("updating asset", "url", assetTask.Asset.URL)
saveAsset(file)
}
Expand Down

0 comments on commit 37e4ab7

Please sign in to comment.