Remove GCP Project env

This commit is contained in:
giongto35 2019-05-17 00:45:14 +08:00
parent 9f0f286246
commit cb1eb44662

View file

@ -18,10 +18,9 @@ type Client struct {
// NewInitClient returns nil of client is not initialized
func NewInitClient() *Client {
projectID := os.Getenv("GCP_PROJECT")
bucketName := "game-save"
client, err := NewClient(projectID, bucketName)
client, err := NewClient(bucketName)
if err != nil {
log.Printf("Warn: Failed to create client: %v", err)
} else {
@ -32,7 +31,7 @@ func NewInitClient() *Client {
}
// NewClient inits a new Client accessing to GCP
func NewClient(projectID string, bucketName string) (*Client, error) {
func NewClient(bucketName string) (*Client, error) {
ctx := context.Background()
// Sets your Google Cloud Platform project ID.