pomerium/internal/cmd/pomerium
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.go internal/cmd/pomerium: fix data race in handling context (#890) 2020-06-15 22:38:45 +07:00
pomerium_test.go main: move pomerium main code to an internal cmd package so that it can be called directly from tests (#734) 2020-05-19 11:17:40 -06:00