style: align format to go default formatting
All checks were successful
CI / test (pull_request) Successful in 36s
All checks were successful
CI / test (pull_request) Successful in 36s
This commit is contained in:
28
main.go
28
main.go
@@ -74,20 +74,20 @@ func main() {
|
||||
rdd := realDynDns.New(externalIpProvider, dnsProvider, notificationProvider, configClient.Domains)
|
||||
|
||||
switch configClient.Mode {
|
||||
case config.ScheduledMode:
|
||||
schedule, job, err := rdd.RunWithSchedule(configClient.CheckInterval)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
case config.ScheduledMode:
|
||||
schedule, job, err := rdd.RunWithSchedule(configClient.CheckInterval)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
fmt.Println("Starting scheduler")
|
||||
fmt.Println("Next run:", job.NextRun())
|
||||
schedule.StartBlocking()
|
||||
case config.RunOnceMode:
|
||||
numberOfChanges, err := rdd.RunOnce()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
fmt.Println("Number of changes:", numberOfChanges)
|
||||
fmt.Println("Starting scheduler")
|
||||
fmt.Println("Next run:", job.NextRun())
|
||||
schedule.StartBlocking()
|
||||
case config.RunOnceMode:
|
||||
numberOfChanges, err := rdd.RunOnce()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
fmt.Println("Number of changes:", numberOfChanges)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user