Skip to content

Commit f7776fe

Browse files
committed
Fix memory protocol codec registration
- Changed from codec=None to codec='memory' - Now properly uses the memory codec for encoding/decoding - Fixes the issue mentioned in PR multiformats#92 where the author was unsure about the codec parameter - Follows the established pattern used by other protocols with custom codecs
1 parent d44f462 commit f7776fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

multiaddr/protocols.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def __repr__(self) -> str:
167167
Protocol(P_P2P_CIRCUIT, "p2p-circuit", None),
168168
Protocol(P_WEBTRANSPORT, "webtransport", None),
169169
Protocol(P_UNIX, "unix", "fspath"),
170-
Protocol(P_MEMORY, "memory", None),
170+
Protocol(P_MEMORY, "memory", "memory"),
171171
]
172172

173173

0 commit comments

Comments
 (0)