On Saturday, 20 March 2021 at 19:19:53 UTC Van Fury wrote: > OK, if I understand you correctly, the outer for loop is not needed and > that > there should be two for loops. > the first for loop does step 1,2 and 3 and then "break" out of the loop > when valid response is received > and then set the "interval". > The second for loop start a for _ := range ticker.C loop and also break > out when there is a PATCH failure response. > > And then you'll need an outer for loop around that, so that the PATCH failure response causes you to restart at step 1.
-- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/e3c27698-bf2c-43c4-b2e4-6fe3d802fe5cn%40googlegroups.com.