Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

feat!: add peer tagging #255

Merged
merged 1 commit into from
Jun 24, 2022
Merged

feat!: add peer tagging #255

merged 1 commit into from
Jun 24, 2022

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented Jun 22, 2022

Allow tagging peers to better prioritise which connections to kill when hitting limits. Also for keeping "priority" connections alive.

Refs: libp2p/js-libp2p#369

BREAKING CHANGE: implementations will need to add the various tag methods

Allow tagging peers to better prioritise which connections to kill
when hitting limits.  Also for keeping "priority" connections alive.

Refs: libp2p/js-libp2p#369
achingbrain added a commit to libp2p/js-libp2p-peer-store that referenced this pull request Jun 22, 2022
Allows tagging peers to mark some important or ones we should keep
connections open to, etc.

Depends on:

- [ ] libp2p/js-libp2p-interfaces#255

Refs: libp2p/js-libp2p#369
@achingbrain achingbrain changed the title feat: add peer tagging feat!: add peer tagging Jun 22, 2022
Copy link
Member

@wemeetagain wemeetagain left a comment

Choose a reason for hiding this comment

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

LGTM
It may also be useful to create well known tag type aliases once those are known. -- tho perhaps those are something that an implementation would export.

@achingbrain achingbrain merged commit 80dadd9 into master Jun 24, 2022
@achingbrain achingbrain deleted the feat/add-peer-tagging branch June 24, 2022 10:18
github-actions bot pushed a commit that referenced this pull request Jun 24, 2022
## [@libp2p/interface-peer-store-v1.1.0](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interface-peer-store-v1.0.0...@libp2p/interface-peer-store-v1.1.0) (2022-06-24)

### Features

* add peer tagging ([#255](#255)) ([80dadd9](80dadd9))

### Trivial Changes

* update aegir ([b0bcff9](b0bcff9))
@github-actions
Copy link

🎉 This PR is included in version @libp2p/interface-peer-store-v1.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@achingbrain
Copy link
Member Author

1.1.0? 🤨

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants