Skip to content

Commit

Permalink
feat(Geo): change us-east to vin
Browse files Browse the repository at this point in the history
  • Loading branch information
blombern committed Aug 23, 2024
1 parent a4802e5 commit 0fa1fb8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ type IDatabaseService interface {
type Geo string

const (
UsEast Geo = "us-east"
RBX Geo = "rbx"
VIN Geo = "vin"
RBX Geo = "rbx"
)

func parseGeoFromEnv() (Geo, error) {
geo := os.Getenv("GEO")
switch geo {
case string(UsEast), string(RBX):
case string(VIN), string(RBX):
return Geo(geo), nil
default:
return "", fmt.Errorf("invalid GEO value: %s", geo)
Expand Down

0 comments on commit 0fa1fb8

Please sign in to comment.