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

feat: add peer:prune event to connection manager #367

Merged
merged 1 commit into from
Apr 11, 2023

Conversation

achingbrain
Copy link
Member

Adds a peer:prune event to the connection manager which can be emitted when connections are pruned.

Adds a `peer:prune` event to the connection manager which can be
emitted when connections are pruned.
Copy link
Member

@maschad maschad left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -6,7 +6,7 @@ import type { Multiaddr } from '@multiformats/multiaddr'

export interface ConnectionManagerEvents {
/**
* This event will be triggered anytime a new Connection is established to another peer.
* This event will be triggered any time a new Connection is established to another peer.
Copy link
Member

Choose a reason for hiding this comment

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

Apparently anytime is an adverb 😉

@maschad maschad merged commit 45680c6 into master Apr 11, 2023
@maschad maschad deleted the feat/add-prune-event branch April 11, 2023 18:06
github-actions bot pushed a commit that referenced this pull request Apr 11, 2023
## [@libp2p/interface-connection-manager-v1.5.0](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interface-connection-manager-v1.4.1...@libp2p/interface-connection-manager-v1.5.0) (2023-04-11)

### Features

* add peer:prune event to connection manager ([#367](#367)) ([45680c6](45680c6))
@github-actions
Copy link

🎉 This PR is included in version @libp2p/interface-connection-manager-v1.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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