2
0

Update the phrasing of TotalResources.

This commit is contained in:
Yaz Saito
2020-10-03 23:04:50 -07:00
parent a70fb082df
commit dd3aa6a6bc
+3 -2
View File
@@ -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
}