Open kevindiu opened 4 years ago
Issue-Label Bot is automatically applying the label type/bug
to this issue, with a confidence of 0.97. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
@kevindiu Could you please Investigate this Issue??
Describe the bug:
It have been found the same bug in 2 different package (tls and cache) so just in case I create a bug report for it. Using
defaultOps
asvar
inoption.go
may create potential bugs in the program as it share the same instance to all callers.I suggest to change all the implementation of defaultOps to from
var
tofunc()
? (like this commit) https://github.com/vdaas/vald/pull/485/commits/db434cbb2af37ef3253a84c7283729c3e263a024To Reproduce:
Expected behavior:
Environment: