Skip to content

Commit

Permalink
dynamolock: fix documentation of dynamolock.WithProvisionedThroughput
Browse files Browse the repository at this point in the history
thanks @Pawan-Bishnoi

Addresses #38
Addresses #39
  • Loading branch information
ucirello committed Aug 21, 2019
1 parent 9bfddbd commit f089f45
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CONTRIBUTORS
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Anders Chen [email protected]
Sven Ulland [email protected]
Christoph Petrausch [email protected]
Christoph Petrausch [email protected]
Pawan Bishnoi [email protected]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ func main() {

log.Println("ensuring table exists")
c.CreateTable("locks",
&dynamodb.ProvisionedThroughput{
dynamolock.WithProvisionedThroughput(&dynamodb.ProvisionedThroughput{
ReadCapacityUnits: aws.Int64(5),
WriteCapacityUnits: aws.Int64(5),
},
}),
dynamolock.WithCustomPartitionKeyName("key"),
)

Expand Down
4 changes: 2 additions & 2 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ limitations under the License.
//
// log.Println("ensuring table exists")
// c.CreateTable("locks",
// &dynamodb.ProvisionedThroughput{
// dynamolock.WithProvisionedThroughput(&dynamodb.ProvisionedThroughput{
// ReadCapacityUnits: aws.Int64(5),
// WriteCapacityUnits: aws.Int64(5),
// },
// }),
// dynamolock.WithCustomPartitionKeyName("key"),
// )
//
Expand Down

0 comments on commit f089f45

Please sign in to comment.