Skip to content

Commit

Permalink
add comment to explain why
Browse files Browse the repository at this point in the history
  • Loading branch information
nopcoder committed Nov 26, 2023
1 parent d53b8af commit ff29a79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/kv/dynamodb/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ func (d *Driver) Open(ctx context.Context, kvParams kvparams.Config) (kv.Store,
}
})

// Create table if not exists
// Create table if not exists.
// To avoid potential errors in restricted environments, we confirmed the existence of the table beforehand.
success, _ := isTableExist(ctx, svc, params.TableName)
if !success {
err := setupKeyValueDatabase(ctx, svc, params)
Expand Down

0 comments on commit ff29a79

Please sign in to comment.