Commit 880d0c04 authored by Jeromy's avatar Jeromy

swarm: pass in stream muxer on construct

parent 49ab9018
......@@ -145,9 +145,9 @@ func NewSwarm(ctx context.Context, listenAddrs []ma.Multiaddr,
return s, nil
}
func NewBlankSwarm(ctx context.Context, id peer.ID, privkey ci.PrivKey) *Swarm {
func NewBlankSwarm(ctx context.Context, id peer.ID, privkey ci.PrivKey, pstpt pst.Transport) *Swarm {
s := &Swarm{
swarm: ps.NewSwarm(PSTransport),
swarm: ps.NewSwarm(pstpt),
local: id,
peers: pstore.NewPeerstore(),
ctx: ctx,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment