qri-io / qri

you're invited to a data party!
https://qri.io
GNU General Public License v3.0
1.11k stars 66 forks source link

fix(api): don't error when running connect with disabled p2p #1807

Closed b5 closed 3 years ago

b5 commented 3 years ago

I'm in a place with really spotty internet, and need to work on qri frontend without blowing up the router. This change makes it possible to run qri connect with p2p features disabled. I've renamed lib.Instance.Connect -> lib.Instance.ConnectP2P to clarify that it's really just about p2p connections, and defined a canonical error for trying to connect with disabled p2p via configuration.

Output when running connect without p2p doesn't make allusions to the d.web, and skips listing libp2p addresses (because there are none).