Skip to content

Conversation

vipocenka
Copy link
Contributor

This PR replaces a // TODO comment with an actual log statement in the purgeStore() method of the dsAddrBookGc:

Change summary:

  • Added a log.Warnf when proto.Unmarshal fails during garbage collection:
    log.Warnf("failed to unmarshal record during GC purge: key=%s, err=%v", result.Key, err)

Copy link
Collaborator

@MarcoPolo MarcoPolo left a comment

Choose a reason for hiding this comment

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

Thanks :) are you using the pstoreds package by any chance?

@vipocenka
Copy link
Contributor Author

@MarcoPolo
I'm not using the pstoreds package myself — I just came across the TODO while reviewing the code and thought it would be helpful to replace it with a proper log statement.

@MarcoPolo MarcoPolo merged commit effdc65 into libp2p:master Apr 21, 2025
11 checks passed
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