mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 08:46:48 +00:00
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:
parent
cb15c11061
commit
811bbe6031
@ -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)
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user