Skip to content

Commit

Permalink
Remove superfluous func param
Browse files Browse the repository at this point in the history
  • Loading branch information
cycneuramus committed Mar 14, 2024
1 parent 6569e95 commit 41696ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package main
import (
"context"
"fmt"
"net/http"
"sync"

cf "github.com/cloudflare/cloudflare-go"
Expand Down Expand Up @@ -52,7 +51,7 @@ func updateARecord(ctx context.Context, api *cf.API, r Record, s *DNSState, ip s
return err
}

func manageDNS(ctx context.Context, api *cf.API, httpClient *http.Client, r Record, s *DNSState, responsiveIP string, logCh chan<- logEntry) {
func manageDNS(ctx context.Context, api *cf.API, r Record, s *DNSState, responsiveIP string, logCh chan<- logEntry) {
activeIP := s.GetActiveIP()
if activeIP == responsiveIP {
sendLogEntry(logCh, r.Domain, fmt.Sprintf("%s: already set to %s", r.Domain, responsiveIP))
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func main() {
return
}

manageDNS(ctx, api, httpClient, r, s, ip, logCh)
manageDNS(ctx, api, r, s, ip, logCh)
}(httpClient, r, dnsStates[r.Domain], logCh)
}

Expand Down

0 comments on commit 41696ac

Please sign in to comment.