mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
f32ad09458
This commit adds a utility for explicitly creating cancelable timers, to avoid possible memory leaks caused by some `<-time.After` timer receives in select statements never being GC'd properly. This issue is fixed in Go 1.23, but since we're still on Go 1.21, this will resolve the possibility of leaks in the mean time. Signed-off-by: Philip Conrad <philip@chariot-chaser.net>