mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-04 12:59:23 +08:00
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
|
||
|
}
|