chore: allow Report.DNS field to be nil

Primarily to help when writing tests; may give a tiny performance benefit.
This commit is contained in:
Bryan Boreham
2019-09-17 15:31:58 +00:00
parent b6d5594f9f
commit 951629af29

View File

@@ -188,7 +188,7 @@ type Report struct {
// Job represent all Kubernetes Job on hosts running probes.
Job Topology
DNS DNSRecords
DNS DNSRecords `json:"nodes,omitempty" deepequal:"nil==empty"`
// Sampling data for this report.
Sampling Sampling