Skip to content

Commit

Permalink
renamed variables for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
eze-kiel committed Feb 26, 2021
1 parent f0dc88d commit d1adee2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/slowql-replayer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,13 @@ func (db *database) replay(f io.Reader) (results, error) {
s.Suffix = " queries replayed: " + strconv.Itoa(r.queries)

if !db.dryRun {
conn, err := db.drv.Query(q.Query)
rows, err := db.drv.Query(q.Query)
if err != nil {
r.errors++
db.logger.Debugf("failed to execute query:\n%s\nerror: %s", q.Query, err)
}
if conn != nil {
conn.Close()
if rows != nil {
rows.Close()
}
}

Expand Down

0 comments on commit d1adee2

Please sign in to comment.