agent/taskresource/ssmsecret/ssmsecret.go
func (secret *SSMSecretResource) getGoRoutineMaxNum() int {
	total := 0
	for _, secrets := range secret.requiredSecrets {
		total += len(secrets)/MaxBatchNum + 1
	}
	return total
}
func (secret *SSMSecretResource) getGoRoutineMaxNum() int {
	total := 0
	for _, secrets := range secret.requiredSecrets {
		total += len(secrets)/MaxBatchNum + 1
	}
	return total
}
func ( secret * SSMSecretResource ) getGoRoutineMaxNum ( ) int { total := 0 for _ , secrets := range secret . requiredSecrets { total += len ( secrets ) / MaxBatchNum + 1 } return total }
// getGoRoutineMaxNum calculates the maximum number of goroutines that we need to spin up
// to retrieve secret values from SSM parameter store. Assume each goroutine initiates one
// SSM GetParameters call and each call will have 10 parameters
getGoRoutineMaxNum calculates the maximum number of goroutines that we need to spin up to retrieve secret values from SSM parameter store . Assume each goroutine initiates one SSM GetParameters call and each call will have 10 parameters