mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 15:22:26 -05:00
upstep bun version (#243)
This commit is contained in:
parent
ddfd83d0fb
commit
142f37f1bd
23 changed files with 146 additions and 57 deletions
8
vendor/github.com/uptrace/bun/db.go
generated
vendored
8
vendor/github.com/uptrace/bun/db.go
generated
vendored
|
|
@ -18,8 +18,8 @@ const (
|
|||
)
|
||||
|
||||
type DBStats struct {
|
||||
Queries uint64
|
||||
Errors uint64
|
||||
Queries uint32
|
||||
Errors uint32
|
||||
}
|
||||
|
||||
type DBOption func(db *DB)
|
||||
|
|
@ -70,8 +70,8 @@ func (db *DB) String() string {
|
|||
|
||||
func (db *DB) DBStats() DBStats {
|
||||
return DBStats{
|
||||
Queries: atomic.LoadUint64(&db.stats.Queries),
|
||||
Errors: atomic.LoadUint64(&db.stats.Errors),
|
||||
Queries: atomic.LoadUint32(&db.stats.Queries),
|
||||
Errors: atomic.LoadUint32(&db.stats.Errors),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue