Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

use the new network.ConnStats #92

Merged
merged 1 commit into from
Dec 12, 2021
Merged

use the new network.ConnStats #92

merged 1 commit into from
Dec 12, 2021

Conversation

marten-seemann
Copy link
Contributor

@marten-seemann marten-seemann commented Dec 12, 2021

Closes #90. Depends on libp2p/go-libp2p-core#226.

@@ -68,7 +68,7 @@ func (u *Upgrader) Upgrade(ctx context.Context, t transport.Transport, maconn ma
if dir == network.DirOutbound && p == "" {
return nil, ErrNilPeer
}
var stat network.Stat
var stat network.ConnStats
Copy link
Contributor

Choose a reason for hiding this comment

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

i dont think we are counting streams in the underlying conn, so we should be fine with the early copy.

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.

2 participants