Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

don't delete under the read lock #76

Merged
merged 4 commits into from
Apr 28, 2019
Merged

don't delete under the read lock #76

merged 4 commits into from
Apr 28, 2019

Conversation

vyzo
Copy link
Contributor

@vyzo vyzo commented Apr 28, 2019

Fixes the panic in #75 and also reworks the gc logic to happen in the background with a periodic process.
Closes #75

let gc clean up the addrs
@vyzo vyzo requested a review from Stebalien April 28, 2019 08:36
@ghost ghost assigned vyzo Apr 28, 2019
@ghost ghost added the status/in-progress In progress label Apr 28, 2019
@vyzo
Copy link
Contributor Author

vyzo commented Apr 28, 2019

We might also want to schedule a periodic gc.

@vyzo
Copy link
Contributor Author

vyzo commented Apr 28, 2019

And possibly stop the eager gc on Update/Add, just rely on the periodic process.

Copy link
Member

@Stebalien Stebalien left a comment

Choose a reason for hiding this comment

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

IIRC, I implemented that weird GC logic to avoid a background task because the peerstore didn't have a close method. However, now that it does, this is definitely much cleaner.

@Stebalien Stebalien merged commit 96639ef into master Apr 28, 2019
@ghost ghost removed the status/in-progress In progress label Apr 28, 2019
@Stebalien Stebalien deleted the fix/issue-75 branch April 28, 2019 19:28
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.

panic in Addrs
2 participants