mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-22 17:47:11 +00:00
Remove GCP Project env
This commit is contained in:
parent
9f0f286246
commit
cb1eb44662
1 changed files with 2 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue