mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-14 21:33:01 -06:00
upstep bun version (#243)
This commit is contained in:
parent
ddfd83d0fb
commit
142f37f1bd
23 changed files with 146 additions and 57 deletions
4
vendor/github.com/uptrace/bun/hook.go
generated
vendored
4
vendor/github.com/uptrace/bun/hook.go
generated
vendored
|
|
@ -53,7 +53,7 @@ func (db *DB) beforeQuery(
|
|||
query string,
|
||||
queryArgs []interface{},
|
||||
) (context.Context, *QueryEvent) {
|
||||
atomic.AddUint64(&db.stats.Queries, 1)
|
||||
atomic.AddUint32(&db.stats.Queries, 1)
|
||||
|
||||
if len(db.queryHooks) == 0 {
|
||||
return ctx, nil
|
||||
|
|
@ -86,7 +86,7 @@ func (db *DB) afterQuery(
|
|||
case nil, sql.ErrNoRows:
|
||||
// nothing
|
||||
default:
|
||||
atomic.AddUint64(&db.stats.Errors, 1)
|
||||
atomic.AddUint32(&db.stats.Errors, 1)
|
||||
}
|
||||
|
||||
if event == nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue