Skip to content
This repository was archived by the owner on Nov 30, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion node.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ func NewNode(id NodeID, local, global, region string, port int) *Node {
}
}

// IsZero returns whether or the given Node has been initialised or if it's an empty Node struct. IsZero returns true if the Node has been initialised, false if it's an empty struct.
// IsZero returns whether or the given Node has been initialised or if it's an empty Node struct.
// The result is true, if the IPs and port are empty, false if it has been initialised.
func (self Node) IsZero() bool {
return self.LocalIP == "" && self.GlobalIP == "" && self.Port == 0
}
Expand Down