Skip to content

refactor(peerstore): replace generic Any types with specific MetadataValue type alias#1244

Open
imApoorva36 wants to merge 1 commit intolibp2p:mainfrom
imApoorva36:refactor/replace-any-with-metadata-value-type
Open

refactor(peerstore): replace generic Any types with specific MetadataValue type alias#1244
imApoorva36 wants to merge 1 commit intolibp2p:mainfrom
imApoorva36:refactor/replace-any-with-metadata-value-type

Conversation

@imApoorva36
Copy link
Contributor

@imApoorva36 imApoorva36 commented Feb 26, 2026

Closes #911

Summary

Improves type safety and code clarity by replacing generic Any type annotations
with a specific MetadataValue type alias for peer metadata handling.
MetadataValue intentionally excludes non-serializable objects to prevent
runtime serialization failures.

Type

Refactor / Internal improvement

@imApoorva36 imApoorva36 force-pushed the refactor/replace-any-with-metadata-value-type branch from fbadc04 to 5aaa5e2 Compare February 26, 2026 11:36
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.

Improve Type Annotations by Replacing Generic Any Types with Specific MetadataValue Type

1 participant