You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/syncs
Joe Tsai 5db80cf2d8
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>
2 weeks ago
..
locked.go all: update copyright and license headers 1 year ago
locked_test.go all: update copyright and license headers 1 year ago
shardedmap.go syncs: add ShardedMap.Mutate 11 months ago
shardedmap_test.go syncs: add ShardedMap.Mutate 11 months ago
syncs.go syncs: fix AtomicValue for interface kinds (#11943) 2 weeks ago
syncs_test.go syncs: fix AtomicValue for interface kinds (#11943) 2 weeks ago