Giter Club home page Giter Club logo

Comments (5)

benoitc avatar benoitc commented on July 23, 2024

nevermind I probably need to add a stream handler first. what shoul dI expect if the stream handler is created a connection is set?

from erlang-libp2p.

madninja avatar madninja commented on July 23, 2024

Hmm.. you'll need to create a stream handler to do anything useful with a session, but you should be able to connect two swarms together without any custom handlers.

I'm not sure what's wrong here since the unit tests do exactly this setup, but here's a couple of things to try:

  1. Could you check on the filesystem to ensure that each swarm had a unique data folder?
  2. Try setting the peerbook_connections option to 0 to see if that's what's causing the problem.

Add the following tuple to the startup opts:

{ libp2p_group_gossip, [{peerbook_connections, 0}] }

from erlang-libp2p.

benoitc avatar benoitc commented on July 23, 2024

sorry I missed your answer. I will try later today. To be honest I wouldn't be against a quick and dirty "getting started" doc :)

from erlang-libp2p.

benoitc avatar benoitc commented on July 23, 2024
  1. Could you check on the filesystem to ensure that each swarm had a unique data folder?

why do they need a data folder btw?

from erlang-libp2p.

madninja avatar madninja commented on July 23, 2024

A swarm stores its keys in the data folder (unless configured otherwise) as well as it's peer book and any group information that has to persist across restarts/crashes

from erlang-libp2p.

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.