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
dms3
go-dms3-pinner
Commits
108b07ff
Commit
108b07ff
authored
8 years ago
by
Jakub Sztandera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make: revert the panic change in pin
License: MIT Signed-off-by:
Jakub Sztandera
<
kubuxu@protonmail.ch
>
parent
2d6a8b8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
pin.go
pin.go
+3
-3
No files found.
pin.go
View file @
108b07ff
...
...
@@ -5,6 +5,7 @@ package pin
import (
"context"
"fmt"
"os"
"sync"
"time"
...
...
@@ -25,9 +26,8 @@ var emptyKey *cid.Cid
func init() {
e, err := cid.Decode("QmdfTbBqBPQ7VNxZEYEj14VmRuZBkqFbiwReogJgS1zR1n")
if err != nil {
msg
:=
"failed to decode empty key constant"
log
.
Error
(
msg
)
panic
(
msg
)
log.Error("failed to decode empty key constant")
os.Exit(1)
}
emptyKey = e
}
...
...
This diff is collapsed.
Click to expand it.
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