mirror of https://github.com/tailscale/tailscale/
syncs: add Map.LoadOrInit for lazily initialized values
I was reviewing some code that was performing this by hand, and wanted to suggest using syncs.Map, however as the code in question was allocating a non-trivial structure this would be necessary to meet the target. Updates #cleanup Signed-off-by: James Tucker <james@tailscale.com>pull/9701/head
parent
e4cb83b18b
commit
498f7ec663
Loading…
Reference in New Issue