From a0e9d7823eca9a15b070a674ac13abea13bfb3ab Mon Sep 17 00:00:00 2001 From: 0x5459 <0x5459@protonmail.com> Date: Fri, 11 Aug 2023 11:34:08 +0800 Subject: [PATCH] fix: return if err occur --- api/impl/venus_market.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/impl/venus_market.go b/api/impl/venus_market.go index 55aa0064..089f52b7 100644 --- a/api/impl/venus_market.go +++ b/api/impl/venus_market.go @@ -1076,7 +1076,7 @@ func (m *MarketNodeImpl) AssignUnPackedDeals(ctx context.Context, sid abi.Sector head, err := m.FullNode.ChainHead(ctx) if err != nil { - log.Errorf("get chain head %w", err) + return nil, fmt.Errorf("get chain head %w", err) } return m.DealAssigner.AssignUnPackedDeals(ctx, sid, ssize, head.Height(), spec) }