fix GetTransient usage for interface change
@@ -360,7 +360,7 @@ func (s *Swarm) NewStream(ctx context.Context, p peer.ID) (network.Stream, error
}
if c.Stat().Transient {
- if !network.GetUseTransient(ctx) {
+ if useTransient, _ := network.GetUseTransient(ctx); !useTransient {
return nil, network.ErrTransientConn
}
}
