Skip to content

Commit

Permalink
fix always calling dynamoDB for put even if cash is off (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
mleray24 authored Jan 10, 2025
1 parent 2f7fe08 commit 2f3391b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ func getResponseFromDynamoDB(ip1, ip2 string) (response, error) {
}

func storeResponseInDynamoDB(response response) error {
if !cache {
return nil
}

// Create a session using the shared config
sess, err := session.NewSession(&aws.Config{
Region: aws.String("us-west-2")},
Expand Down

0 comments on commit 2f3391b

Please sign in to comment.