Skip to content
This repository has been archived by the owner on May 14, 2020. It is now read-only.

Shim for Connection Gater #22

Closed
wants to merge 3 commits into from
Closed

Conversation

aarshkshah1992
Copy link
Collaborator

@aarshkshah1992 aarshkshah1992 commented Apr 9, 2020

For libp2p/go-libp2p#872.

This PR implements an adaptor/shim for Filters that transforms it to a ConnectionGater.
This is required because Swarm etc no longer use a Filter and so go-libp2p transforms a Filter to a ConnectionGater if no ConnectionGater has been explicitly configured by the user.

Copy link
Member

@raulk raulk left a comment

Choose a reason for hiding this comment

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

I think we're better off putting this in go-libp2p as a utility method, and pointing to it from the // Deprecated comment on the Filters option, than putting this here and introducing a dependency on go-libp2p-core. WDYT, @aarshkshah1992?

@raulk
Copy link
Member

raulk commented May 14, 2020

This shim will live in go-libp2p.

@raulk raulk closed this May 14, 2020
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.

None yet

2 participants