make: revert the panic change in pin

License: MIT
Signed-off-by: 's avatarJakub Sztandera <kubuxu@protonmail.ch>
上级 5b4ecae9
...@@ -5,6 +5,7 @@ package pin ...@@ -5,6 +5,7 @@ package pin
import ( import (
"context" "context"
"fmt" "fmt"
"os"
"sync" "sync"
"time" "time"
...@@ -25,9 +26,8 @@ var emptyKey *cid.Cid ...@@ -25,9 +26,8 @@ var emptyKey *cid.Cid
func init() { func init() {
e, err := cid.Decode("QmdfTbBqBPQ7VNxZEYEj14VmRuZBkqFbiwReogJgS1zR1n") e, err := cid.Decode("QmdfTbBqBPQ7VNxZEYEj14VmRuZBkqFbiwReogJgS1zR1n")
if err != nil { if err != nil {
msg := "failed to decode empty key constant" log.Error("failed to decode empty key constant")
log.Error(msg) os.Exit(1)
panic(msg)
} }
emptyKey = e emptyKey = e
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论