Skip to content

Commit

Permalink
Merge pull request #1 from 0311xuyang/t1
Browse files Browse the repository at this point in the history
t1
  • Loading branch information
0311xuyang authored Aug 26, 2024
2 parents c742214 + b313510 commit c564597
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# chain-util
# chain-util

Edit-1
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 c564597

Please sign in to comment.