diff --git a/internal/querycoord/query_coord.go b/internal/querycoord/query_coord.go index a632d1871b..604f24173e 100644 --- a/internal/querycoord/query_coord.go +++ b/internal/querycoord/query_coord.go @@ -369,8 +369,8 @@ func (qc *QueryCoord) watchNodeLoop() { offlineNodes := qc.cluster.OfflineNodeIDs() if len(offlineNodes) != 0 { log.Warn("find querynode down while coord not alive", zap.Any("nodeIDs", offlineNodes)) - for node := range offlineNodes { - qc.offlineNodesChan <- UniqueID(node) + for _, node := range offlineNodes { + qc.offlineNodesChan <- node } }