refactor: return an int32 for scale count

This commit is contained in:
Jose Diaz-Gonzalez
2024-01-18 19:23:57 -05:00
parent 3f96a250a2
commit 6bcb4a016d
2 changed files with 6 additions and 6 deletions

View File

@@ -64,10 +64,10 @@ func BuildConfig(appName string) error {
common.LogInfo1(fmt.Sprintf("Ensuring network configuration is in sync for %s", appName))
for processType, procCount := range scale {
containerIndex := 0
containerIndex := int32(0)
for containerIndex < procCount {
containerIndex++
containerIndexString := strconv.Itoa(containerIndex)
containerIndexString := strconv.FormatInt(int64(containerIndex), 10)
containerIDFile := fmt.Sprintf("%v/CONTAINER.%v.%v", appRoot, processType, containerIndex)
containerID := common.ReadFirstLine(containerIDFile)