Fix 0 len slice declaration for dml_channels.go (#12094)

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
congqixia 2021-11-18 22:33:26 +08:00 committed by GitHub
parent dfc70108c4
commit 27715c15f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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