remove prepared statement

This commit is contained in:
filifa 2024-03-19 20:31:32 -05:00
parent a49301e826
commit 51d3473c17
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 ?
`
stmt, err := db.Prepare(query)
if err != nil {
return nil, err
}
defer stmt.Close()
rows, err := stmt.Query(llimit, ulimit, t, n)
rows, err := db.Query(query, llimit, ulimit, t, n)
if err != nil {
return nil, err
}