Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

remove connection setup #2

Closed
wants to merge 5 commits into from

Conversation

marten-seemann
Copy link

This PR moves the connection setup to go-libp2p-conn, see libp2p/go-libp2p-conn#9.

It should be merged once we activate multi-stream support, as added in libp2p/go-libp2p-transport#20.

muxtest/muxt.go Outdated
tests := []TransportTest{
SubtestConstructSwarm,
SubtestSimpleWrite,
SubtestSimpleWrite100msgs,
SubtestStress1Swarm1Conn1Stream1Msg,
SubtestStress1Swarm1Conn1Stream100Msg,
SubtestStress1Swarm1Conn100Stream100Msg,
SubtestStress1Swarm10Conn50Stream50Msg,
// SubtestStress1Swarm10Conn50Stream50Msg,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this disabled for some reason?

muxtest/muxt.go Outdated
func SubtestAll(t *testing.T, tr smux.Transport) {

func SubtestAll(t *testing.T, lo listenerOpts, streamMuxer smux.Transport) {
f, err := os.Create("./log.txt")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove debug logging code

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@marten-seemann marten-seemann changed the title WIP remove connection setup remove connection setup Sep 7, 2017
Connection setup will be handled in go-libp2p-conn. go-peerstream now
handles iconn.Conn and the associated streams
Serve was recently removed from the interface.
@Stebalien
Copy link
Member

Superseded by the refactor

@Stebalien Stebalien closed this Jun 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants