Skip to content

Commit

Permalink
doc: add en readme
Browse files Browse the repository at this point in the history
  • Loading branch information
eryajf committed Sep 11, 2024
1 parent 823ec9d commit 9f9b0fe
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions pkg/provider/cloudflare.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import (
"context"
"encoding/json"
"fmt"
"sync"
"time"

"github.com/alibabacloud-go/tea/tea"
"github.com/cloudflare/cloudflare-go"
"github.com/eryajf/cloud_dns_exporter/public"
"github.com/golang-module/carbon/v2"
"sync"
"time"
)

type CloudFlareDNS struct {
Expand Down Expand Up @@ -149,9 +150,7 @@ func (cf *CloudFlareDNS) getDomainList() (rst []cloudflare.Zone, err error) {
fmt.Printf("cloudflare list zones error: %v", err)
return
}
for _, zone := range zones {
rst = append(rst, zone)
}
rst = append(rst, zones...)
return
}

Expand Down Expand Up @@ -182,9 +181,7 @@ func (cf *CloudFlareDNS) getRecordList(domain string) (rst []cloudflare.DNSRecor
if err != nil {
return nil, err
}
for _, record := range records {
rst = append(rst, record)
}
rst = append(rst, records...)
if page*pageSize > r.Total {
break
}
Expand Down

0 comments on commit 9f9b0fe

Please sign in to comment.