Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove left-over iteration++ #3185

Merged
merged 1 commit into from
May 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions pkg/pillar/cmd/zedagent/handlemetrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,12 @@ func handleDiskMetricImpl(ctxArg interface{}, key string,
statusArg interface{}) {

status := statusArg.(types.DiskMetric)
ctx := ctxArg.(*zedagentContext)
ctx.iteration++
path := status.DiskPath
log.Functionf("handleDiskMetricImpl: %s", path)
}

func handleDiskMetricDelete(ctxArg interface{}, key string, statusArg interface{}) {
status := statusArg.(types.DiskMetric)
ctx := ctxArg.(*zedagentContext)
ctx.iteration++
path := status.DiskPath
log.Functionf("handleDiskMetricModify: %s", path)
}
Expand Down Expand Up @@ -1485,7 +1481,6 @@ func PublishEdgeviewToZedCloud(ctx *zedagentContext,
//but if there is a queue we'll retry sending the highest priority message.
queueInfoToDest(ctx, dest, "global", buf, size, bailOnHTTPErr, false, forcePeriodic,
info.ZInfoTypes_ZiEdgeview)
ctx.iteration++
}

func appIfnameToNetworkInstance(ctx *zedagentContext,
Expand Down
3 changes: 0 additions & 3 deletions pkg/pillar/cmd/zedagent/zedagent.go
Original file line number Diff line number Diff line change
Expand Up @@ -2010,7 +2010,6 @@ func handleAppInstanceStatusCreate(ctxArg interface{}, key string,
triggerPublishDevInfo(ctx)
processAppCommandStatus(ctx.getconfigCtx, status)
triggerLocalAppInfoPOST(ctx.getconfigCtx)
ctx.iteration++
log.Functionf("handleAppInstanceStatusCreate(%s) DONE", key)
}

Expand All @@ -2028,7 +2027,6 @@ func handleAppInstanceStatusModify(ctxArg interface{}, key string,
ctx.iteration, AllDest)
processAppCommandStatus(ctx.getconfigCtx, status)
triggerLocalAppInfoPOST(ctx.getconfigCtx)
ctx.iteration++
log.Functionf("handleAppInstanceStatusModify(%s) DONE", key)
}

Expand All @@ -2042,7 +2040,6 @@ func handleAppInstanceStatusDelete(ctxArg interface{}, key string,
ctx.iteration, AllDest)
triggerPublishDevInfo(ctx)
triggerLocalAppInfoPOST(ctx.getconfigCtx)
ctx.iteration++
log.Functionf("handleAppInstanceStatusDelete(%s) DONE", key)
}

Expand Down