Skip to content
This repository was archived by the owner on Jul 29, 2025. It is now read-only.

Added log to print number of peers - #32

Merged
pratikspatil024 merged 2 commits into
peppermintfrom
psp-peerinfo
Nov 6, 2023
Merged

pratikspatil024 merged 2 commits into
peppermintfrom
psp-peerinfo

Conversation

@pratikspatil024

Copy link
Copy Markdown
Member
  • Referenced an issue explaining the need for the change
  • Updated all relevant documentation in docs
  • Updated all code comments where relevant
  • Wrote tests
  • Updated CHANGELOG_PENDING.md

Comment thread p2p/pex/pex_reactor.go Outdated
r.seedAddrs = seedAddrs

r.Logger.Info("Peer Info", "numPeers", r.Switch.Peers().Size())

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Won't this oly get printed in the start only?
We need it at intervals through out the running node

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I see, yes. Only this iteration or the other one as well?

@pratikspatil024
pratikspatil024 merged commit 2f132b9 into peppermint Nov 6, 2023
@pratikspatil024
pratikspatil024 deleted the psp-peerinfo branch November 6, 2023 04:19
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.

3 participants