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
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
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论