Skip to content

Commit

Permalink
Merge pull request #1503 from vitalyisaev2/patch-2
Browse files Browse the repository at this point in the history
Fix typo in README.md
  • Loading branch information
asmyasnikov authored Oct 9, 2024
2 parents caa3b27 + 51ffe3c commit 848edf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ if err != nil {
err := db.Query().Do( // Do retry operation on errors with best effort
ctx, // context manage exiting from Do
func(ctx context.Context, s query.Session) (err error) { // retry operation
streamResult, err := s.Query(ctx, `SELECT 42 as id, "myStr" as myStr;`))
streamResult, err := s.Query(ctx, `SELECT 42 as id, "myStr" as myStr;`)
if err != nil {
return err // for auto-retry with driver
}
defer func() { _ = streamResult.Close(ctx) }() // cleanup resources
for s, err := range streamResult.ResultSets(ctx) {
for rs, err := range streamResult.ResultSets(ctx) {
if err != nil {
return err
}
Expand Down

0 comments on commit 848edf6

Please sign in to comment.