Giter VIP home page Giter VIP logo

Comments (8)

halturin avatar halturin commented on June 26, 2024

Method Nodes() returns the list of connected nodes

from ergo.

jiait avatar jiait commented on June 26, 2024

Nodes() returns empty, so I wonder if I can drill down to the bottom to get a clue?

from ergo.

halturin avatar halturin commented on June 26, 2024

It returns an empty list even being connected with the other nodes, right? If so, could you please share the way how it can be reproduced?

from ergo.

jiait avatar jiait commented on June 26, 2024

``func main() {
StartGateNode(os.Args[1], "abc")
}

func StartGateNode(nodeName string, cookie string) {
gateNode, err := ergo.StartNode(nodeName, cookie, node.Options{})
if err != nil {
slog.Fatal("start gate node error:%v", err)
}
slog.Info("node name:%s, cookie:%s, start ok", gateNode.Name(), cookie)
slog.Info("nodes node :%v", gateNode.Nodes())
common.Node.Wait()
}

from ergo.

jiait avatar jiait commented on June 26, 2024

[2023-08-11T00:18:18.684] INFO gateapp/main.go:21 node name:[email protected], cookie:abc, start ok
[2023-08-11T00:18:18.698] INFO gateapp/main.go:22 nodes node :[]

from ergo.

jiait avatar jiait commented on June 26, 2024

Nothing is done, just start two nodes with different node names, but nodes() returns empty,

from ergo.

halturin avatar halturin commented on June 26, 2024

I don't see the code where nodes are connecting to each other.

You can explicitly call Connect method or just send a message to the process on a remote node

from ergo.

jiait avatar jiait commented on June 26, 2024

Oh, my mistake, I misunderstood, sometimes I just sent a message and then the link was on, and I did not manually execute connect, which is always understood as automatic connection by default

from ergo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.