Commit 108b07ff authored by Jakub Sztandera's avatar Jakub Sztandera

make: revert the panic change in pin

License: MIT
Signed-off-by: default avatarJakub Sztandera <kubuxu@protonmail.ch>
parent 2d6a8b8e
......@@ -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 is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment