diff --git a/pool.go b/pool.go index 52c5e8f..0d6d9ef 100644 --- a/pool.go +++ b/pool.go @@ -175,8 +175,9 @@ type Stat struct { canceledAcquireCount int64 } -// TotalResource returns the total number of allocated resources in the pool. -// The value is the sum of ConstructingResources, AcquiredResources, and IdleResources. +// TotalResource returns the total number of resources currently in the pool. +// The value is the sum of ConstructingResources, AcquiredResources, and +// IdleResources. func (s *Stat) TotalResources() int32 { return s.constructingResources + s.acquiredResources + s.idleResources }