adjust peer element for partnership

This commit is contained in:
mr
2026-01-23 07:38:20 +01:00
parent 8f5f3e331d
commit b71b1e741d

View File

@@ -31,11 +31,14 @@ const (
PARTNER PARTNER
BLACKLIST BLACKLIST
PENDING_PARTNER PENDING_PARTNER
PENDING_NONE
) )
func (m PeerRelation) Path() string {
return [...]string{"unknown", "self", "partner", "blacklist", "pending_parthner"}[m]
}
func (m PeerRelation) String() string { func (m PeerRelation) String() string {
return [...]string{"NONE", "SELF", "PARTNER", "BLACKLIST", "PENDING_PARTNER", "PENDING_NONE"}[m] return [...]string{"NONE", "SELF", "PARTNER", "BLACKLIST", "PENDING_PARTNER"}[m]
} }
func (m PeerRelation) EnumIndex() int { func (m PeerRelation) EnumIndex() int {