Closed costela closed 2 years ago
If the Getter's Get method panics, the singleflight mechanism is left in an unclean state (missing a Waitgroup.Done() call), which causes all subsequent Gets of the same key to block indefinitely.
Getter
Get
Waitgroup.Done()
MR with a solution suggestion incoming.
If the
Getter
'sGet
method panics, the singleflight mechanism is left in an unclean state (missing aWaitgroup.Done()
call), which causes all subsequentGet
s of the same key to block indefinitely.MR with a solution suggestion incoming.