Compare commits

...

2 Commits

Author SHA1 Message Date
eleksir
7474028b82 Remove validation of unused cmd_delay parameter 2024-05-06 23:25:34 +03:00
eleksir
120b7c995a Update config for golangci-lint 2024-05-06 23:23:15 +03:00
2 changed files with 3 additions and 7 deletions

View File

@@ -1,10 +1,11 @@
run: run:
tests: false tests: false
skip-dirs:
- vendor
modules-download-mode: readonly modules-download-mode: readonly
allow-parallel-runners: true allow-parallel-runners: true
go: '1.21' go: '1.21'
issues:
skip-dirs:
- vendor
output: output:
sort-results: true sort-results: true
linters: linters:

View File

@@ -69,11 +69,6 @@ func readConfFile(path string) (Config, error) {
return Config{}, err return Config{}, err
} }
if cfg.CmdDelay == 0 {
cfg.CmdDelay = 20
log.Printf("cmd_delay can not be 0, setting to %d milliseconds", cfg.CmdDelay)
}
if cfg.LoopDelay == 0 { if cfg.LoopDelay == 0 {
cfg.LoopDelay = 2000 cfg.LoopDelay = 2000
log.Printf("loop_delay set to %d milliseconds", cfg.LoopDelay) log.Printf("loop_delay set to %d milliseconds", cfg.LoopDelay)