From dd3aa6a6bc7b991dfecfa3eb8b5fe69c6443cd04 Mon Sep 17 00:00:00 2001 From: Yaz Saito Date: Sat, 3 Oct 2020 23:04:50 -0700 Subject: [PATCH] Update the phrasing of TotalResources. --- pool.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 }