Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ld
go-ld-prime
Commits
46ca29fe
Commit
46ca29fe
authored
Mar 19, 2019
by
hannahhoward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(cidlink): init multicodec registry
allocate multicode tables so register functions don't panic
parent
fc13adf1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
linking/cid/multicodecRegistry.go
linking/cid/multicodecRegistry.go
+5
-0
No files found.
linking/cid/multicodecRegistry.go
View file @
46ca29fe
...
...
@@ -7,6 +7,11 @@ var (
multicodecEncodeTable
MulticodecEncodeTable
)
func
init
()
{
multicodecEncodeTable
=
make
(
MulticodecEncodeTable
)
multicodecDecodeTable
=
make
(
MulticodecDecodeTable
)
}
// RegisterMulticodecDecoder is used to register multicodec features.
// It adjusts a global registry and may only be used at program init time;
// it is meant to provide a plugin system, not a configuration mechanism.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment