mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-25 20:37:53 +08:00
make: revert the panic change in pin
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
parent
5b4ecae946
commit
73a711b2df
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user