Initialize FundsSpent to zero in RetrievalEvent

This commit is contained in:
Ingar Shu 2020-08-17 14:20:04 -07:00
parent 5ace7479ad
commit 7fbbf23e5a
No known key found for this signature in database
GPG Key ID: BE3D9CE79F22E769

View File

@ -6,6 +6,7 @@ import (
"io"
"os"
"github.com/filecoin-project/specs-actors/actors/abi/big"
"golang.org/x/xerrors"
"github.com/ipfs/go-blockservice"
@ -413,7 +414,7 @@ func (a *API) clientRetrieve(ctx context.Context, order api.RetrievalOrder, ref
if e != nil {
errStr = e.Error()
}
events <- marketevents.RetrievalEvent{Err: errStr}
events <- marketevents.RetrievalEvent{Err: errStr, FundsSpent: big.Zero()}
}
if order.MinerPeer.ID == "" {