diff options
| author | Joe Tsai <joetsai@digital-static.net> | 2024-04-30 14:27:58 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-30 14:27:58 -0700 |
| commit | 5db80cf2d8f2008d8d77e2976511e0ceefc6e2b5 (patch) | |
| tree | f185105a7901d617060cabff3150b7f9520d506d /control/controlknobs/controlknobs.go | |
| parent | 44aa809cb01215c12c9464716902e7910655962f (diff) | |
| download | tailscale-5db80cf2d8f2008d8d77e2976511e0ceefc6e2b5.tar.xz tailscale-5db80cf2d8f2008d8d77e2976511e0ceefc6e2b5.zip | |
syncs: fix AtomicValue for interface kinds (#11943)
If AtomicValue[T] is used with a T that is an interface kind,
then Store may panic if different concret types are ever stored.
Fix this by always wrapping in a concrete type.
Technically, this is only needed if T is an interface kind,
but there is no harm in doing it also for non-interface kinds.
Updates #cleanup
Signed-off-by: Joe Tsai <joetsai@digital-static.net>
Diffstat (limited to 'control/controlknobs/controlknobs.go')
0 files changed, 0 insertions, 0 deletions
