mirror of
https://github.com/juanfont/headscale.git
synced 2026-11-22 05:14:57 +09:00
fix: fix linting issue on my computer
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -566,7 +566,7 @@ func GetFileMode(key string) fs.FileMode {
|
||||
return fs.FileMode(mode)
|
||||
}
|
||||
|
||||
func contains(ts []T, t T) bool {
|
||||
func contains[T string](ts []T, t T) bool {
|
||||
for _, v := range ts {
|
||||
if reflect.DeepEqual(v, t) {
|
||||
return true
|
||||
|
||||
@@ -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().
|
||||
Str("handler", "PollNetMap").
|
||||
Str("machine", machine).
|
||||
|
||||
Reference in new issue
Block a user