Skip to content

Various improvements#32

Merged
schollz merged 1 commit intoschollz:mainfrom
kirillDanshin:main
Jan 3, 2023
Merged

Various improvements#32
schollz merged 1 commit intoschollz:mainfrom
kirillDanshin:main

Conversation

@kirillDanshin
Copy link
Copy Markdown
Contributor

  • Restructure the library: the library was split into several files to make keeping only the necessary context a bit easier
  • GC for lost peers: for long-running apps it's useful to have some way to know if we didn't see a peer for a while
  • Introduce support for peer metadata + Lost peer notifications: useful if you want to store some information relevant to this specific peer to perform something upon loosing the peer
  • Shutdown support: simple way to stop the listener
  • Fix a few error shadowing issues

I made my best effort to keep the backwards compatibility, and as far as I know this PR should be backward-compatible.

…lost peers, lost peer notifications, shutdown support, fix error shadowing.
@schollz schollz merged commit 6f58c05 into schollz:main Jan 3, 2023
@schollz
Copy link
Copy Markdown
Owner

schollz commented Jan 3, 2023

looks great! thanks so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants