Skip to content

Commit

Permalink
Make golangci-lint happy
Browse files Browse the repository at this point in the history
```
$ golangci-lint run
main.go:202:14: Error return value is not checked (errcheck)
	go DnsEngine(&conf)
	            ^
```
  • Loading branch information
eest committed May 27, 2024
1 parent 6e85ad9 commit f770d87
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,12 @@ func main() {
go APIdispatcher(&conf, apistopper)
// go httpsserver(&conf, apistopper)

go DnsEngine(&conf)
go func() {
err := DnsEngine(&conf)
if err != nil {
fmt.Printf("main: DnsEngine() failed: %s", err)
}
}()
conf.BootTime = time.Now()

mainloop(&conf, &cfgFileUsed, td)
Expand Down

0 comments on commit f770d87

Please sign in to comment.