summaryrefslogtreecommitdiff
path: root/vendor/github.com/jackc/pgx/v5/pgxpool/stat.go
diff options
context:
space:
mode:
authorLibravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2025-03-24 10:50:09 +0000
committerLibravatar GitHub <noreply@github.com>2025-03-24 10:50:09 +0000
commit18c8f85a3032fcc091b4c9e2be6cbe00f80b7f53 (patch)
tree5da21e4f91951c667068ab01c2b3886fc4a5f6a0 /vendor/github.com/jackc/pgx/v5/pgxpool/stat.go
parent[chore]: Bump golang.org/x/net from 0.36.0 to 0.37.0 (#3934) (diff)
downloadgotosocial-18c8f85a3032fcc091b4c9e2be6cbe00f80b7f53.tar.xz
[chore]: Bump github.com/jackc/pgx/v5 from 5.7.2 to 5.7.3 (#3935)
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.7.2 to 5.7.3. - [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md) - [Commits](https://github.com/jackc/pgx/compare/v5.7.2...v5.7.3) --- updated-dependencies: - dependency-name: github.com/jackc/pgx/v5 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Diffstat (limited to 'vendor/github.com/jackc/pgx/v5/pgxpool/stat.go')
-rw-r--r--vendor/github.com/jackc/pgx/v5/pgxpool/stat.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/vendor/github.com/jackc/pgx/v5/pgxpool/stat.go b/vendor/github.com/jackc/pgx/v5/pgxpool/stat.go
index cfa0c4c56..e02b6ac39 100644
--- a/vendor/github.com/jackc/pgx/v5/pgxpool/stat.go
+++ b/vendor/github.com/jackc/pgx/v5/pgxpool/stat.go
@@ -82,3 +82,10 @@ func (s *Stat) MaxLifetimeDestroyCount() int64 {
func (s *Stat) MaxIdleDestroyCount() int64 {
return s.idleDestroyCount
}
+
+// EmptyAcquireWaitTime returns the cumulative time waited for successful acquires
+// from the pool for a resource to be released or constructed because the pool was
+// empty.
+func (s *Stat) EmptyAcquireWaitTime() time.Duration {
+ return s.s.EmptyAcquireWaitTime()
+}