build/cmd/rmplaysnippet
Andrew Bonventre 82d2f7506d cmd/rmplaysnippet: account for local datastore host env var
If DATASTORE_EMULATOR_HOST is set, datastore.NewClient will use
it to connect to a locally-running datastore instance. Clear it
before creating the client and set a 30-second timeout on the
context so that the process doesn't appear to hang indefinitely
when the env var is set.

Change-Id: I605ee699a55f4537c174a5667c92044936f10d74
Reviewed-on: https://go-review.googlesource.com/c/build/+/185142
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2019-07-12 17:07:44 +00:00
..
main.go cmd/rmplaysnippet: account for local datastore host env var 2019-07-12 17:07:44 +00:00