updated a small typo in the code and a suggestion for the betterment of the code:
Sleep Usage:
The use of time.Sleep(10 * time.Second) is not the best practice for waiting for resources to be available or deleted. It’s better to implement a polling mechanism to check if the resource has been created or deleted before proceeding, as the current approach can lead to longer wait times unnecessarily.
updated a small typo in the code and a suggestion for the betterment of the code:
Sleep Usage:
The use of
time.Sleep(10 * time.Second)
is not the best practice for waiting for resources to be available or deleted. It’s better to implement a polling mechanism to check if the resource has been created or deleted before proceeding, as the current approach can lead to longer wait times unnecessarily.