Comments (8)
Method Nodes() returns the list of connected nodes
from ergo.
Nodes() returns empty, so I wonder if I can drill down to the bottom to get a clue?
from ergo.
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.
``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.
[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.
Nothing is done, just start two nodes with different node names, but nodes() returns empty,
from ergo.
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.
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)
- How does ergo compare?
- GitHub actions fail on all platforms due to integration E2E tests HOT 1
- Unittest `TestDecodeFragment` occasionally fails
- i found rpc:call from erlang to ergo is not working HOT 2
- Ergo receives DIST packet along with the HANDSHAKE final packet. HOT 1
- Second CallRPC method is stuck when it is called against remote erlang node HOT 3
- Does Ergo have a plan to support OTP25/OTP26? HOT 1
- how to use simple_one_for_one under supervisor tree HOT 4
- Panic invalid memory address after reconnect a node HOT 6
- bug for deleteProcess HOT 3
- bug for (*process).UnregisterName HOT 2
- I doubt benchmarks be fair !!! HOT 3
- How to change Logger HOT 2
- gen.TcpHandle Question HOT 10
- When I close it frequently, there will be an unrecoverable panic. HOT 3
- Increase test coverage to 80% HOT 2
- node link problem? HOT 2
- Support for Erlang/OTP 26 HOT 1
- Node.Stop () and node.Wait () will immediately end the process HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ergo.