fix: fix linting issue on my computer
This commit is contained in:
parent
2c448d4a5c
commit
fec8cda16a
2 changed files with 2 additions and 2 deletions
|
@ -566,7 +566,7 @@ func GetFileMode(key string) fs.FileMode {
|
||||||
return fs.FileMode(mode)
|
return fs.FileMode(mode)
|
||||||
}
|
}
|
||||||
|
|
||||||
func contains(ts []T, t T) bool {
|
func contains[T string](ts []T, t T) bool {
|
||||||
for _, v := range ts {
|
for _, v := range ts {
|
||||||
if reflect.DeepEqual(v, t) {
|
if reflect.DeepEqual(v, t) {
|
||||||
return true
|
return true
|
||||||
|
|
2
poll.go
2
poll.go
|
@ -619,7 +619,7 @@ func (h *Headscale) scheduledPollWorker(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func closeChanWithLog(channel C, machine, name string) {
|
func closeChanWithLog[C chan []byte | chan struct{}](channel C, machine, name string) {
|
||||||
log.Trace().
|
log.Trace().
|
||||||
Str("handler", "PollNetMap").
|
Str("handler", "PollNetMap").
|
||||||
Str("machine", machine).
|
Str("machine", machine).
|
||||||
|
|
Loading…
Reference in a new issue