make: revert the panic change in pin

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
Jakub Sztandera 2016-12-20 20:20:23 +01:00
parent 5b4ecae946
commit 73a711b2df
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -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
}