adjust peer element for partnership
This commit is contained in:
@@ -31,11 +31,14 @@ const (
|
||||
PARTNER
|
||||
BLACKLIST
|
||||
PENDING_PARTNER
|
||||
PENDING_NONE
|
||||
)
|
||||
|
||||
func (m PeerRelation) Path() string {
|
||||
return [...]string{"unknown", "self", "partner", "blacklist", "pending_parthner"}[m]
|
||||
}
|
||||
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user