You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/10/12 15:20:04 UTC

[GitHub] [apisix] membphis removed a comment on pull request #2397: feature(core): implement `core.sleep`

membphis removed a comment on pull request #2397:
URL: https://github.com/apache/apisix/pull/2397#issuecomment-707181445


   > local function sleep(sec)
   >     if sec <= max_sleep_interval then
   >         ngx_sleep(sec)
   >         return
   >     end
   >     ngx_sleep(max_sleep_interval)
   >     if exiting() then
   >         return
   >     end
   >     sec = sec - max_sleep_interval
   >     sleep(sec)
   > end
   
   missing`while true do ... end`, so your current way is wrong @dabue 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org