Skip to content

Commit 1706443

Browse files
committed
chore(cloudflare): unexport createRecord method
1 parent ec4411e commit 1706443

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/provider/providers/cloudflare/provider.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ func (p *Provider) getRecordID(ctx context.Context, client *http.Client, newIP n
225225
return listRecordsResponse.Result[0].ID, false, nil
226226
}
227227

228-
func (p *Provider) CreateRecord(ctx context.Context, client *http.Client, ip netip.Addr) (recordID string, err error) {
228+
func (p *Provider) createRecord(ctx context.Context, client *http.Client, ip netip.Addr) (recordID string, err error) {
229229
recordType := constants.A
230230

231231
if ip.Is6() {
@@ -314,7 +314,7 @@ func (p *Provider) Update(ctx context.Context, client *http.Client, ip netip.Add
314314

315315
switch {
316316
case stderrors.Is(err, errors.ErrReceivedNoResult):
317-
identifier, err = p.CreateRecord(ctx, client, ip)
317+
identifier, err = p.createRecord(ctx, client, ip)
318318
if err != nil {
319319
return netip.Addr{}, fmt.Errorf("creating record: %w", err)
320320
}

0 commit comments

Comments
 (0)