mirror of https://github.com/jackc/pgx.git
Merge pull request #2208 from vamshiaruru/feat/expose_empty_acquire_wait_time_from_puddle
Expose puddle.Pool's EmptyAcquireWaitTime in pgxpool's Statspull/2216/head
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…
Reference in New Issue