open-match-ecosystem
open-match-ecosystem copied to clipboard
OM2: generate tokenSource differently when running standalone/mmqueue locally with `go run`
Currently omclient.go doesn't generate a token source when running standalone/mmqueue locally with go run
: https://github.com/googleforgames/open-match-ecosystem/blob/ce40d8fbce32210e0adc339966b3455a9135abb2/v2/internal/omclient/omclient.go#L379
We can generate a token source with google.DefaultTokenSource as suggested in https://github.com/googleapis/google-api-go-client/issues/873#issuecomment-779788114 when users use go run
to run the mmqueue.