You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to handle the case that the ConcurrentMessages list consists of all the past messages.
fori, t:=rangerate.ConcurrentMessages {
ift.Sub(now) >=time.Duration(0) {
rate.ConcurrentMessages=rate.ConcurrentMessages[i:]
break
}
// Need to clear the list if it consists all the past messages, otherwise the delay will be increased for each incoming request.ifi== (len(rate.ConcurrentMessages) -1) {
rate.ConcurrentMessages=rate.ConcurrentMessages[:0]
}
}
The text was updated successfully, but these errors were encountered:
We need to handle the case that the ConcurrentMessages list consists of all the past messages.
The text was updated successfully, but these errors were encountered: