Correct node error. It's 0-1023!

This commit is contained in:
Bruce Marriner 2016-06-10 18:54:48 -05:00
parent 00c61c48d0
commit c676f9e9ea

View File

@ -40,7 +40,7 @@ type ID int64
func NewNode(node int64) (*Node, error) {
if node < 0 || node > nodeMax {
return nil, errors.New("Node number must be between 0 and 1024")
return nil, errors.New("Node number must be between 0 and 1023")
}
return &Node{