Skip to content

Commit

Permalink
fix: unstable ut in leader_vew_manager.go file
Browse files Browse the repository at this point in the history
Signed-off-by: jaime <[email protected]>
  • Loading branch information
jaime0815 committed Jan 10, 2025
1 parent 826b726 commit 125d382
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/querycoordv2/meta/leader_view_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ func (mgr *LeaderViewManager) GetLeaderView(collectionID int64) []*metricsinfo.L
if lv, ok := nodeViews.collectionViews[collectionID]; ok {
filteredViews = lv
} else {
// if collectionID is not found, return empty leader views
return leaderViews
// skip if collectionID is not found
continue
}
} else {
// if collectionID is not set, return all leader views
Expand Down

0 comments on commit 125d382

Please sign in to comment.