mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 03:18:29 +08:00
Fix 0 len slice declaration for dml_channels.go (#12094)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
dfc70108c4
commit
27715c15f4
@ -64,7 +64,7 @@ func (d *dmlChannels) GetDmlMsgStreamName() string {
|
||||
|
||||
// ListChannels lists all dml channel names
|
||||
func (d *dmlChannels) ListChannels() []string {
|
||||
chanNames := make([]string, 0)
|
||||
var chanNames []string
|
||||
d.refcnt.Range(
|
||||
func(k, v interface{}) bool {
|
||||
chanNames = append(chanNames, k.(string))
|
||||
|
Loading…
Reference in New Issue
Block a user