Closed Stebalien closed 3 years ago
Interested in this PR, currently pubsub is broken with latest libp2p core version, due to the FullClose missing helper function. Can I help?
Please downgrade go-libp2p-core (i.e., use the version referenced by the latest go-libp2p). This patch set got stuck on some unexpected issues but should unstick within a few weeks.
You mean this PR? The CI just says that there are some unused imports. The helpers package is not used anymore. Or is there something else to wait for?
This is waiting on https://github.com/libp2p/go-libp2p/pull/1001, which is blocked on some very tricky issues in protocol negotiation.
Also, should handleNewStream call Close instead of Reset now or is leaving it as Reset the intended behavior?
It doesn't really matter in that case. That'll only happen when we're shutting down (who cares) or we've already disconnected from the peer (again, who cares). We only call "close" in the case where the peer sends os a nice EOF for some reason (which will never happen in the go implementation, actually...).
Yeah, looks fine -- @stebalien will prod when it's time to merge (go-libp2p and every thing else must be ready first).
@vyzo all done. Merge when ready.
Updates to the new stream interfaces. See https://github.com/libp2p/go-libp2p-core/releases/tag/v0.7.0.