pomerium/internal/cmd
Cuong Manh Le 896467c4bf
internal/cmd/pomerium: fix data race in handling context (#890)
Caught by:

	go test -race ./internal/cmd/pomerium

The ctx in Run is both read (in handle signal goroutine) and write
(when passing to errgroup context in Run), causes data race.

Fixing it, by passing the ctx to goroutine via argument instead of
accessing it directly.
2020-06-15 22:38:45 +07:00
..
pomerium internal/cmd/pomerium: fix data race in handling context (#890) 2020-06-15 22:38:45 +07:00