Skip printing error if empty for reporting bandwidth (#11606)

This commit is contained in:
Ritesh H Shukla
2021-02-22 13:41:40 -08:00
committed by GitHub
parent 02e7de6367
commit 6e5c61d917

View File

@@ -29,8 +29,8 @@ import (
// Report includes the bandwidth report or the error encountered.
type Report struct {
Report bandwidth.Report
Err error
Report bandwidth.Report `json:"report"`
Err error `json:"error,omitempty"`
}
// GetBucketBandwidth - Gets a channel reporting bandwidth measurements for replication buckets. If no buckets