Skip to content

Commit 064cdeb

Browse files
committed
improve doc
1 parent 4bbb2d4 commit 064cdeb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/get_header.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ loop:
252252
case <-ticker.C:
253253
// dec the remaining timeout budget and send request
254254
if timeoutLeftMs > relayConfig.FrequencyGetHeaderMs {
255+
// decreasing the remaining timeout budget, so subsequent get_header
256+
// requests get less and less time from the overall budget
255257
timeoutLeftMs -= relayConfig.FrequencyGetHeaderMs
256258
wg.Add(1)
257259
go sendTimedRequest(timeoutLeftMs)

0 commit comments

Comments
 (0)