From 5f5491a9e57fbfa35b73a1a74eee352bfd56c893 Mon Sep 17 00:00:00 2001 From: Jennifer Wang Date: Fri, 23 Sep 2022 16:04:45 -0400 Subject: [PATCH] get deal proposal --- cmd/lotus-shed/fip-0036.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/lotus-shed/fip-0036.go b/cmd/lotus-shed/fip-0036.go index fa48c47c7..f6fc72427 100644 --- a/cmd/lotus-shed/fip-0036.go +++ b/cmd/lotus-shed/fip-0036.go @@ -390,17 +390,17 @@ var clientCmd = &cli.Command{ return xerrors.Errorf("cannot resolve singer: ", ai) } if err := dps.ForEach(func(dealID abi.DealID, d market.DealProposal) error { - p, found, _ := dps.Get(dealID) - if found && p.Client == ai { + + if d.Client == ai { if v.OptionID == APPROVE { - acceptanceBytes += p.PieceSize + acceptanceBytes += d.PieceSize acceptanceCount += 1 } else { - rejectionBytes += p.PieceSize + rejectionBytes += d.PieceSize rejectionCount += 1 } } - return xerrors.Errorf("cant get deal ", err) + return nil }); err != nil { return err }