Fix zero length slice declaration in timeticksync.go (#12372)

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/12401/head
congqixia 2021-11-29 20:21:41 +08:00 committed by GitHub
parent 5797e6b3ac
commit 9af7e179f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)