Fix smaller issues and golints
License: MIT Signed-off-by: Hector Sanjuan <hector@protocol.ai>
This commit is contained in:
parent
ea85cf7805
commit
229c4d148c
|
@ -38,7 +38,7 @@ func VerifyShards(t *testing.T, rootCid cid.Cid, pins MockPinStore, ipfs MockBlo
|
|||
}
|
||||
|
||||
if metaPin.Reference == nil {
|
||||
return nil, errors.New("MetaPin.Reference is unset")
|
||||
return nil, errors.New("metaPin.Reference is unset")
|
||||
}
|
||||
|
||||
clusterPin, err := pins.PinGet(ctx, *metaPin.Reference)
|
||||
|
|
|
@ -1492,7 +1492,7 @@ func (c *Cluster) cidsFromMetaPin(ctx context.Context, h cid.Cid) ([]cid.Cid, er
|
|||
}
|
||||
|
||||
if pin.Reference == nil {
|
||||
return nil, errors.New("MetaPin.Reference is unset")
|
||||
return nil, errors.New("metaPin.Reference is unset")
|
||||
}
|
||||
list = append([]cid.Cid{*pin.Reference}, list...)
|
||||
clusterDagPin, err := c.PinGet(ctx, *pin.Reference)
|
||||
|
|
|
@ -957,7 +957,7 @@ func handlePinResponseFormatFlags(
|
|||
return
|
||||
}
|
||||
|
||||
if status.Cid == cid.Undef { // no status from "wait"
|
||||
if status == nil { // no status from "wait"
|
||||
time.Sleep(time.Second)
|
||||
status, cerr = globalClient.Status(ctx, pin.Cid, false)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user