mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-04 04:49:08 +08:00
f940cc455a
Signed-off-by: cai.zhang <cai.zhang@zilliz.com>
11 lines
239 B
Go
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
|
|
}
|