We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bcf3fbd + 12b37f3 commit 00b86caCopy full SHA for 00b86ca
pgxpool/stat.go
@@ -82,3 +82,10 @@ func (s *Stat) MaxLifetimeDestroyCount() int64 {
82
func (s *Stat) MaxIdleDestroyCount() int64 {
83
return s.idleDestroyCount
84
}
85
+
86
+// EmptyAcquireWaitTime returns the cumulative time waited for successful acquires
87
+// from the pool for a resource to be released or constructed because the pool was
88
+// empty.
89
+func (s *Stat) EmptyAcquireWaitTime() time.Duration {
90
+ return s.s.EmptyAcquireWaitTime()
91
+}
0 commit comments