Skip to content

Commit

Permalink
unset headers
Browse files Browse the repository at this point in the history
  • Loading branch information
nitesh3108 committed Oct 8, 2024
1 parent 95975b5 commit 04451e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
const (
metricsURL = "metrics"
mirrorURL = "volume_mirror_transfer_rate_cma_view"
limit = 2000
)

func (c *ClientIMPL) metricsRequest(ctx context.Context, response interface{}, entity string, entityID string, interval MetricsIntervalEnum) error {
Expand Down Expand Up @@ -73,6 +74,7 @@ func (c *ClientIMPL) mirrorTransferRate(ctx context.Context, response interface{
if err != nil {
err = WrapErr(err)
}
customHeader.Del("DELL-VISIBILITY")

return err
}
Expand Down Expand Up @@ -101,7 +103,7 @@ func (c *ClientIMPL) PerformanceMetricsByVolume(ctx context.Context, entityID st
// VolumeMirrorTransferRate - Volume Mirror Transfer Rate
func (c *ClientIMPL) VolumeMirrorTransferRate(ctx context.Context, entityID string) ([]VolumeMirrorTransferRateResponse, error) {
var resp []VolumeMirrorTransferRateResponse
err := c.mirrorTransferRate(ctx, &resp, entityID, 2000)
err := c.mirrorTransferRate(ctx, &resp, entityID, limit)
return resp, err
}

Expand Down

0 comments on commit 04451e6

Please sign in to comment.