Skip to content

Commit

Permalink
pointing to latest gopowerstore commit (#86)
Browse files Browse the repository at this point in the history
* pointing to latest gopowerstore commit

Signed-off-by: shefali-malhotra <[email protected]>

* fixing gofumpt issues

---------

Signed-off-by: shefali-malhotra <[email protected]>
  • Loading branch information
shefali-malhotra authored Oct 14, 2024
1 parent 6123e78 commit f84ac07
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ toolchain go1.23.1

require (
github.com/dell/gocsi v1.11.0
github.com/dell/gopowerstore v1.15.2-0.20241008144633-6990d1b86e5b
github.com/dell/gopowerstore v1.15.2-0.20241011144707-92570cd3324d
github.com/fsnotify/fsnotify v1.6.0
github.com/golang/mock v1.6.0
github.com/sirupsen/logrus v1.9.3
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/dell/gocsi v1.11.0 h1:P84VOPd1V55JQjx4tfd/6QOlVQRQkYUqmGqbzPKeyUQ=
github.com/dell/gocsi v1.11.0/go.mod h1:LzGAsEIjBxVXJuabzsG3/MsdCOczxDE1IWOBxzXIUhw=
github.com/dell/gopowerstore v1.15.2-0.20241008144633-6990d1b86e5b h1:wVpvFdhc4FIl7w73fm9aTGtE3iTfoO5Ag7/WQUNdHUU=
github.com/dell/gopowerstore v1.15.2-0.20241008144633-6990d1b86e5b/go.mod h1:EQEsDdulHtvpDIe2tMCW/2swr1enisuzW4Zmw6c2SKc=
github.com/dell/gopowerstore v1.15.2-0.20241011144707-92570cd3324d h1:/0Fx88rsVEab9k0+t+iRQ861wD3aRvurFtCfhY+Gwco=
github.com/dell/gopowerstore v1.15.2-0.20241011144707-92570cd3324d/go.mod h1:EQEsDdulHtvpDIe2tMCW/2swr1enisuzW4Zmw6c2SKc=
github.com/eapache/go-resiliency v1.2.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs=
github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU=
github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I=
Expand Down
5 changes: 2 additions & 3 deletions internal/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ func (s *PowerStoreService) gatherVolumeMetrics(ctx context.Context, volumes <-c
}

metrics, err := goPowerStoreClient.PerformanceMetricsByVolume(ctx, volumeID, gopowerstore.TwentySec)

if err != nil {
s.Logger.WithError(err).WithField("volume_id", volumeMeta.ID).Error("getting performance metrics for volume")
return
Expand All @@ -267,7 +266,7 @@ func (s *PowerStoreService) gatherVolumeMetrics(ctx context.Context, volumes <-c
writeLatency = toMilliseconds(latestMetric.AvgWriteLatency)
}

//Read the replication parameter
// Read the replication parameter
replicationMetrics, err := goPowerStoreClient.VolumeMirrorTransferRate(ctx, volumeID)

s.Logger.WithFields(logrus.Fields{
Expand Down Expand Up @@ -887,7 +886,7 @@ func (s *PowerStoreService) gatherFileSystemMetrics(ctx context.Context, volumes
writeLatency = toMilliseconds(latestMetric.AvgWriteLatency)
}

//Read the replication parameter
// Read the replication parameter
replicationMetrics, err := goPowerStoreClient.VolumeMirrorTransferRate(ctx, volumeID)

s.Logger.WithFields(logrus.Fields{
Expand Down

0 comments on commit f84ac07

Please sign in to comment.