Skip to content

Commit

Permalink
feat: remove get pod no-cache
Browse files Browse the repository at this point in the history
Signed-off-by: Airren <[email protected]>
  • Loading branch information
Airren committed Jun 27, 2024
1 parent 13c917e commit 92c62b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/agent/orm/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,8 @@ func (m *ManagerImpl) processAddPod(podUID string) error {
err error
)
if m.mode == workModeNri {
m.ctx = context.WithValue(m.ctx, metaserverpod.BypassCacheKey, metaserverpod.BypassCacheTrue)
pod, err = m.metaManager.GetPod(m.ctx, podUID)
nriQueryCtx := context.WithValue(m.ctx, metaserverpod.BypassCacheKey, metaserverpod.BypassCacheTrue)
pod, err = m.metaManager.GetPod(nriQueryCtx, podUID)
} else {
pod, err = m.metaManager.GetPod(m.ctx, podUID)
}
Expand Down

0 comments on commit 92c62b3

Please sign in to comment.