Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
0311xuyang committed Aug 26, 2024
1 parent ed78b19 commit b313510
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"strings"

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/guregu/dynamo"
)
Expand All @@ -17,8 +18,9 @@ const TableUser = "Users"

func init() {
DynamoDB = dynamo.New(session.Must(session.NewSession()), &aws.Config{
Region: aws.String("us-east-1"),
Endpoint: aws.String("http://127.0.0.1:8000"),
Region: aws.String("us-east-1"),
Endpoint: aws.String("http://127.0.0.1:8000"),
Credentials: credentials.NewStaticCredentials("dummy", "dummy", ""),
})
}

Expand Down

0 comments on commit b313510

Please sign in to comment.