Louis-Dreyfus-Company / geeservermap

Interactive map for Google Earth Engine in python
MIT License
3 stars 0 forks source link

The check is always true ? #15

Closed 12rambau closed 12 months ago

12rambau commented 12 months ago

From what I understand, as next_cleanup_time is set rior to the while loop, now will always be at least 5 steps afterward right ? To me this condition: if proxy and now >= next_cleanup_time: is redundant. What do you think ?

https://github.com/Louis-Dreyfus-Company/geeservermap/blob/e0bc8a96f6d68f0b42dc5163d129bc6517f87396/geeservermap/async_jobs.py#L97C18-L97C18

12rambau commented 12 months ago

My mistake, the value of next_cleanup_time is reevaluated at the end of the loop.