Commit 3ff68815 authored by vyzo's avatar vyzo

fix GetTransient usage for interface change

parent 5c3c0a05
...@@ -360,7 +360,7 @@ func (s *Swarm) NewStream(ctx context.Context, p peer.ID) (network.Stream, error ...@@ -360,7 +360,7 @@ func (s *Swarm) NewStream(ctx context.Context, p peer.ID) (network.Stream, error
} }
if c.Stat().Transient { if c.Stat().Transient {
if !network.GetUseTransient(ctx) { if useTransient, _ := network.GetUseTransient(ctx); !useTransient {
return nil, network.ErrTransientConn return nil, network.ErrTransientConn
} }
} }
......
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