pomerium/cache
Cuong Manh Le b90885b4c1
cache: fix data race in NotifyJoin (#1028)
In 35af5c0b91, the check for multiple
cache servers in NotifyJoin is made to be done in a goroutine. That can
lead to a data race, because the memberlist can be changed at the time
the goroutine was run. go warns about this race when test memberlist was
run with "-race".

To fix this, we pass the nil check as argument to goroutine.
2020-07-01 00:11:40 +07:00
..
cache.go grpc: rename internal/grpc to pkg/grpc (#1010) 2020-06-26 09:17:02 -06:00
cache_test.go cache: remove unused metrics and options (#957) 2020-06-22 06:59:04 -07:00
databroker.go grpc: rename internal/grpc to pkg/grpc (#1010) 2020-06-26 09:17:02 -06:00
memberlist.go cache: fix data race in NotifyJoin (#1028) 2020-07-01 00:11:40 +07:00
memberlist_test.go cache: add test for runMemberList (#1007) 2020-06-26 23:54:14 +07:00
session.go grpc: rename internal/grpc to pkg/grpc (#1010) 2020-06-26 09:17:02 -06:00
user.go grpc: rename internal/grpc to pkg/grpc (#1010) 2020-06-26 09:17:02 -06:00