Skip to content

Commit

Permalink
fasthttp: updated stale error message
Browse files Browse the repository at this point in the history
  • Loading branch information
valyala committed Nov 30, 2015
1 parent 16106d3 commit 27bbc81
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions frameworks/Go/fasthttp/src/hello/hello.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ type Fortune struct {
Message string `json:"message"`
}

// Databases
const (
connectionString = "benchmarkdbuser:benchmarkdbpass@tcp(localhost:3306)/hello_world"
worldRowCount = 10000
Expand All @@ -48,10 +47,8 @@ var (
const helloWorldString = "Hello, World!"

var (
// Templates
tmpl = template.Must(template.ParseFiles("templates/layout.html", "templates/fortune.html"))

// Database
db *sql.DB

helloWorldBytes = []byte(helloWorldString)
Expand Down Expand Up @@ -143,7 +140,7 @@ func queriesHandler(ctx *fasthttp.RequestCtx) {
func fortuneHandler(ctx *fasthttp.RequestCtx) {
rows, err := fortuneSelectStmt.Query()
if err != nil {
log.Fatalf("Error preparing statement: %v", err)
log.Fatalf("Error selecting db data: %v", err)
}

fortunes := make([]Fortune, 0, 16)
Expand Down

0 comments on commit 27bbc81

Please sign in to comment.