remove prepared statement

This commit is contained in:
Nick Griffey 2024-02-24 20:28:19 -06:00
parent 9c4d4aa037
commit b09e915d9e
1 changed files with 1 additions and 7 deletions

View File

@ -43,13 +43,7 @@ func (db *TimelineDB) closestEvents(t int64, n uint, llimit int64, ulimit int64)
limit ? limit ?
` `
stmt, err := db.Prepare(query) rows, err := db.Query(query, llimit, ulimit, t, n)
if err != nil {
return nil, err
}
defer stmt.Close()
rows, err := stmt.Query(llimit, ulimit, t, n)
if err != nil { if err != nil {
return nil, err return nil, err
} }