1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-02-09 13:37:12 +02:00

Add a comment

This commit is contained in:
Vladimir Mihailenco 2020-05-15 09:36:04 +03:00
parent 88d9ad0ba8
commit 28571207b7

View File

@ -201,6 +201,8 @@ loop:
if !timer.Stop() {
<-timer.C
}
// This is not needed normally, but use some timeout so we are not stuck
// waiting for enqueueWait forever.
const waitTimeout = 30 * time.Second
timer.Reset(waitTimeout)