mirror of
https://github.com/jackc/pgx.git
synced 2025-07-08 11:39:38 +00:00
Merge pull request #2208 from vamshiaruru/feat/expose_empty_acquire_wait_time_from_puddle
Expose puddle.Pool's EmptyAcquireWaitTime in pgxpool's Stats
This commit is contained in:
commit
00b86ca3db
@ -82,3 +82,10 @@ func (s *Stat) MaxLifetimeDestroyCount() int64 {
|
|||||||
func (s *Stat) MaxIdleDestroyCount() int64 {
|
func (s *Stat) MaxIdleDestroyCount() int64 {
|
||||||
return s.idleDestroyCount
|
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()
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user