Skip to content

Commit

Permalink
gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
peterebden committed Oct 24, 2024
1 parent 5dc3589 commit 4e0dd91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions mettle/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ var opts = struct {
Timeout flags.Duration `long:"timeout" hidden:"true" description:"Deprecated, has no effect."`
MinDiskSpace flags.ByteSize `long:"min_disk_space" default:"1G" description:"Don't accept builds unless at least this much disk space is available"`
MemoryThreshold float64 `long:"memory_threshold" default:"100.0" description:"Don't accept builds unless available memory is under this percentage"`
ConnCheck string `long:"connectivity_check" choice:"gstatic" choice:"firefox" description:"Run an HTTP connectivity check periodically to verify if HTTP access is working"`
ConnCheck string `long:"connectivity_check" choice:"gstatic" choice:"firefox" description:"Run an HTTP connectivity check periodically to verify if HTTP access is working"`
ConnCheckPeriod flags.Duration `long:"connectivity_check_period" default:"1h" description:"Periodicity to re-check connectivity at"`
VersionFile string `long:"version_file" description:"File containing version tag"`
Costs map[string]cli.Currency `long:"cost" description:"Per-second costs to associate with each build action."`
Expand All @@ -86,8 +86,8 @@ var opts = struct {
Timeout flags.Duration `long:"timeout" hidden:"true" description:"Deprecated, has no effect."`
MinDiskSpace flags.ByteSize `long:"min_disk_space" default:"1G" description:"Don't accept builds unless at least this much disk space is available"`
MemoryThreshold float64 `long:"memory_threshold" default:"100.0" description:"Don't accept builds unless available memory is under this percentage"`
ConnCheck string `long:"connectivity_check" choice:"gstatic" choice:"firefox" description:"Run an HTTP connectivity check periodically to verify if HTTP access is working"`
ConnCheckPeriod flags.Duration `long:"connectivity_check_period" default:"1h" description:"Periodicity to re-check connectivity at"`
ConnCheck string `long:"connectivity_check" choice:"gstatic" choice:"firefox" description:"Run an HTTP connectivity check periodically to verify if HTTP access is working"`
ConnCheckPeriod flags.Duration `long:"connectivity_check_period" default:"1h" description:"Periodicity to re-check connectivity at"`
VersionFile string `long:"version_file" description:"File containing version tag"`
Costs map[string]cli.Currency `long:"cost" description:"Per-second costs to associate with each build action."`
Cache CacheOpts `group:"Options controlling caching" namespace:"cache"`
Expand Down
4 changes: 2 additions & 2 deletions mettle/worker/reporting.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package worker
import (
"context"
"fmt"
"os"
"net/http"
"os"
"syscall"
"time"

Expand Down Expand Up @@ -185,7 +185,7 @@ func (w *worker) checkConnectivity(check string) {
log.Fatalf("Connectivity check returned unexpected status: %s", resp.Status)
}
case "":
return // no check
return // no check
default:
log.Fatalf("unknown connectivity check type: %s", check)
}
Expand Down

0 comments on commit 4e0dd91

Please sign in to comment.