Skip to content

Commit

Permalink
bugs found at deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
1nv8rzim committed Oct 29, 2023
1 parent 2e36d34 commit 9e86edf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,6 @@ func Run(ctx context.Context, target string, command string, expectedOutput stri
}
defer conn.Close()

conn.SetConnMaxIdleTime(-1)
conn.SetMaxOpenConns(1)

// Check if connection can be made
if optionsStruct.Connect {
err = conn.Ping()
Expand Down Expand Up @@ -207,7 +204,7 @@ func Run(ctx context.Context, target string, command string, expectedOutput stri
}
defer query.Close()

rows, err := query.QueryContext(ctx, optionsStruct.Field, optionsStruct.Table)
rows, err := query.QueryContext(ctx, expectedOutput)
if err != nil {
return false, err.Error()
}
Expand Down

0 comments on commit 9e86edf

Please sign in to comment.