Use more uints

Previously we accepted int values although only uint values made sense.
We adjusted this to accept uints where appropriate.
This commit is contained in:
sirkrypt0
2021-06-01 09:49:45 +02:00
committed by Tobias Kantusch
parent 1c4daa99a9
commit 630a006258
9 changed files with 32 additions and 31 deletions

View File

@@ -57,7 +57,7 @@ func (m *NomadEnvironmentManager) CreateOrUpdate(
if err == nil {
if !exists {
m.runnerManager.RegisterEnvironment(
runner.EnvironmentId(idInt), runner.NomadJobId(id), int(request.PrewarmingPoolSize))
runner.EnvironmentId(idInt), runner.NomadJobId(id), request.PrewarmingPoolSize)
}
return !exists, nil
}