milvus/internal/indexservice/util.go
cai.zhang f940cc455a Add dockerfile for index
Signed-off-by: cai.zhang <cai.zhang@zilliz.com>
2021-01-26 09:38:40 +08:00

11 lines
239 B
Go

package indexservice
import "github.com/zilliztech/milvus-distributed/internal/proto/commonpb"
func CompareAddress(a *commonpb.Address, b *commonpb.Address) bool {
if a == b {
return true
}
return a.Ip == b.Ip && a.Port == b.Port
}