Skip to content

Commit

Permalink
fix: fix linting issue on my computer
Browse files Browse the repository at this point in the history
  • Loading branch information
restanrm committed Apr 25, 2022
1 parent 2c448d4 commit fec8cda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/headscale/cli/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion poll.go
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit fec8cda

Please sign in to comment.