Fixed incorrect calls to node.New
This commit is contained in:
@@ -12,7 +12,7 @@ func TestNodes_Add(t *testing.T) {
|
||||
const nNodes = 10000
|
||||
for i := 0; i < nNodes; i++ {
|
||||
var nn *Node
|
||||
nn, _ = New(nil, transport.NewSim(0))
|
||||
nn, _ = New(nil, nil, transport.NewSim(0))
|
||||
n = n.Add(nn)
|
||||
}
|
||||
if n.Len() != nNodes {
|
||||
@@ -26,7 +26,7 @@ func TestNodes_DeleteByID(t *testing.T) {
|
||||
var e error
|
||||
for i := 0; i < nNodes; i++ {
|
||||
var nn *Node
|
||||
nn, _ = New(nil, transport.NewSim(0))
|
||||
nn, _ = New(nil, nil, transport.NewSim(0))
|
||||
n.Add(nn)
|
||||
}
|
||||
for i := range n {
|
||||
@@ -42,7 +42,7 @@ func TestNodes_DeleteByIP(t *testing.T) {
|
||||
var e error
|
||||
for i := 0; i < nNodes; i++ {
|
||||
var nn *Node
|
||||
nn, _ = New(nil, transport.NewSim(0))
|
||||
nn, _ = New(nil, nil, transport.NewSim(0))
|
||||
n.Add(nn)
|
||||
}
|
||||
for i := range n {
|
||||
@@ -57,7 +57,7 @@ func TestNodes_FindByID(t *testing.T) {
|
||||
const nNodes = 10000
|
||||
for i := 0; i < nNodes; i++ {
|
||||
var nn *Node
|
||||
nn, _ = New(nil, transport.NewSim(0))
|
||||
nn, _ = New(nil, nil, transport.NewSim(0))
|
||||
n.Add(nn)
|
||||
}
|
||||
for i := range n {
|
||||
@@ -73,7 +73,7 @@ func TestNodes_FindByIP(t *testing.T) {
|
||||
const nNodes = 10000
|
||||
for i := 0; i < nNodes; i++ {
|
||||
var nn *Node
|
||||
nn, _ = New(nil, transport.NewSim(0))
|
||||
nn, _ = New(nil, nil, transport.NewSim(0))
|
||||
n.Add(nn)
|
||||
}
|
||||
for i := range n {
|
||||
|
||||
@@ -26,8 +26,8 @@ type Relay struct {
|
||||
qu.C
|
||||
}
|
||||
|
||||
func New(ip net.IP, tpt ifc.Transport) (r *Relay) {
|
||||
n, _ := node.New(ip, tpt)
|
||||
func New(ip net.IP, pubKey *pub.Key, tpt ifc.Transport) (r *Relay) {
|
||||
n, _ := node.New(ip, pubKey, tpt)
|
||||
r = &Relay{Node: n,
|
||||
Nodes: node.NewNodes(),
|
||||
Transport: tpt,
|
||||
|
||||
@@ -13,11 +13,11 @@ var (
|
||||
// GitRef is the gitref, as in refs/heads/branchname.
|
||||
GitRef = "refs/heads/main"
|
||||
// ParentGitCommit is the commit hash of the parent HEAD.
|
||||
ParentGitCommit = "512088dd3c5787f644f4f75bd71620d92e7d66bf"
|
||||
ParentGitCommit = "55db41096d8d5daa6729d023337e33d93b4ccd94"
|
||||
// BuildTime stores the time when the current binary was built.
|
||||
BuildTime = "2022-12-01T12:37:52+01:00"
|
||||
BuildTime = "2022-12-01T12:40:48+01:00"
|
||||
// SemVer lists the (latest) git tag on the build.
|
||||
SemVer = "v0.0.141"
|
||||
SemVer = "v0.0.142"
|
||||
// PathBase is the path base returned from runtime caller.
|
||||
PathBase = "/home/loki/src/github.com/Indra-Labs/indra/"
|
||||
// Major is the major number from the tag.
|
||||
@@ -25,7 +25,7 @@ var (
|
||||
// Minor is the minor number from the tag.
|
||||
Minor = 0
|
||||
// Patch is the patch version number from the tag.
|
||||
Patch = 141
|
||||
Patch = 142
|
||||
)
|
||||
|
||||
// Version returns a pretty printed version information string.
|
||||
|
||||
Reference in New Issue
Block a user