Skip to content

Commit

Permalink
fix(api): cache results in CloudflareHandle.ListRecords
Browse files Browse the repository at this point in the history
  • Loading branch information
favonia committed Aug 7, 2021
1 parent 5decc3d commit 8680b4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/api/cloudflare.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ func (h *CloudflareHandle) ListRecords(ctx context.Context, indent pp.Indent,
rmap[rs[i].ID] = net.ParseIP(rs[i].Content)
}

h.cache.listRecords[ipNet].SetDefault(domain.ToASCII(), rmap)

return rmap, true
}

Expand Down

0 comments on commit 8680b4b

Please sign in to comment.