open-match-ecosystem icon indicating copy to clipboard operation
open-match-ecosystem copied to clipboard

OM2: generate tokenSource differently when running standalone/mmqueue locally with `go run`

Open peterzhongyi opened this issue 6 months ago • 0 comments

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.

peterzhongyi avatar Aug 21 '24 20:08 peterzhongyi