Correct node error. It's 0-1023!
This commit is contained in:
parent
00c61c48d0
commit
c676f9e9ea
@ -40,7 +40,7 @@ type ID int64
|
|||||||
func NewNode(node int64) (*Node, error) {
|
func NewNode(node int64) (*Node, error) {
|
||||||
|
|
||||||
if node < 0 || node > nodeMax {
|
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{
|
return &Node{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user