mirror of https://github.com/milvus-io/milvus.git
Fix zero length slice declaration in timeticksync.go (#12372)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/12401/head
parent
5797e6b3ac
commit
9af7e179f2
|
@ -121,7 +121,7 @@ func (t *timetickSync) sendToChannel() {
|
|||
|
||||
// detect whether rootcoord receives ttMsg from all proxy nodes
|
||||
maxCnt := int64(0)
|
||||
idleProxyList := make([]typeutil.UniqueID, 0)
|
||||
idleProxyList := make([]typeutil.UniqueID, 0, len(t.proxyTimeTick))
|
||||
for id, v := range t.proxyTimeTick {
|
||||
if v == nil {
|
||||
idleProxyList = append(idleProxyList, id)
|
||||
|
|
Loading…
Reference in New Issue