Skip to content

Commit abdc0ca

Browse files
authored
Use addrEqual for candidate comparison (#752)
1 parent c9abe8b commit abdc0ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

candidate_base.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ func (c *candidateBase) Equal(other Candidate) bool {
402402
if c.addr() == nil || other.addr() == nil {
403403
return false
404404
}
405-
if c.addr().String() != other.addr().String() {
405+
if !addrEqual(c.addr(), other.addr()) {
406406
return false
407407
}
408408
}

0 commit comments

Comments
 (0)