Apply gofmt

Previous PR from Simon or Ken broke build due to missing gofmt
in the PR. This PR applies it to resolve the build issue.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis (VMware) 2018-04-11 20:46:20 -07:00
parent cb15c11061
commit 811bbe6031
5 changed files with 8 additions and 8 deletions

View File

@ -17,7 +17,7 @@ func TestDisabledScale(t *testing.T) {
} }
} }
func TestParameterEdge(t *testing.T){ func TestParameterEdge(t *testing.T) {
minReplicas := uint64(0) minReplicas := uint64(0)
scalingFactor := uint64(0) scalingFactor := uint64(0)
newReplicas := CalculateReplicas("firing", DefaultMinReplicas, DefaultMaxReplicas, minReplicas, scalingFactor) newReplicas := CalculateReplicas("firing", DefaultMinReplicas, DefaultMaxReplicas, minReplicas, scalingFactor)
@ -27,7 +27,7 @@ func TestParameterEdge(t *testing.T){
} }
} }
func TestMaxScale(t *testing.T){ func TestMaxScale(t *testing.T) {
minReplicas := uint64(1) minReplicas := uint64(1)
scalingFactor := uint64(100) scalingFactor := uint64(100)
newReplicas := CalculateReplicas("firing", DefaultMinReplicas, DefaultMaxReplicas, minReplicas, scalingFactor) newReplicas := CalculateReplicas("firing", DefaultMinReplicas, DefaultMaxReplicas, minReplicas, scalingFactor)

View File

@ -11,6 +11,6 @@ type ServiceQueryResponse struct {
Replicas uint64 Replicas uint64
MaxReplicas uint64 MaxReplicas uint64
MinReplicas uint64 MinReplicas uint64
ScalingFactor uint64 ScalingFactor uint64
AvailableReplicas uint64 AvailableReplicas uint64
} }

View File

@ -149,7 +149,7 @@ func (s ExternalServiceQuery) SetReplicas(serviceName string, count uint64) erro
// extractLabelValue will parse the provided raw label value and if it fails // extractLabelValue will parse the provided raw label value and if it fails
// it will return the provided fallback value and log an message // it will return the provided fallback value and log an message
func extractLabelValue(rawLabelValue string, fallback uint64 ) uint64{ func extractLabelValue(rawLabelValue string, fallback uint64) uint64 {
if len(rawLabelValue) <= 0 { if len(rawLabelValue) <= 0 {
return fallback return fallback
} }