[VOL-5374] Upgrade go version to v1.23
Change-Id: I11655451672cc7bae9cc92cddcaa563ac50d7de4
Signed-off-by: Akash Reddy Kankanala <akash.kankanala@radisys.com>
diff --git a/internal/pkg/controller/device.go b/internal/pkg/controller/device.go
index c8caddd..497339b 100644
--- a/internal/pkg/controller/device.go
+++ b/internal/pkg/controller/device.go
@@ -1080,13 +1080,13 @@
// IsFlowDelThresholdReached - check if the attempts for flow delete has reached threshold or not
func (d *Device) IsFlowDelThresholdReached(flowCount uint32, cookie uint64) bool {
logger.Debugw(ctx, "Check flow delete threshold", log.Fields{"Cookie": cookie, "FlowCount": flowCount})
- return flowCount >= GetController().GetMaxFlowRetryAttempt()
+ return flowCount >= uint32(GetController().GetMaxFlowRetryAttempt())
}
// IsFlowAddThresholdReached - check if the attempts for flow add has reached threshold or not
func (d *Device) IsFlowAddThresholdReached(flowCount uint32, cookie uint64) bool {
logger.Debugw(ctx, "Check flow add threshold", log.Fields{"Cookie": cookie, "FlowCount": flowCount})
- return flowCount >= GetController().GetMaxFlowRetryAttempt()
+ return flowCount >= uint32(GetController().GetMaxFlowRetryAttempt())
}
func (d *Device) UpdateFlowCount(cntx context.Context, cookie uint64) {