Skip to content

Commit

Permalink
fix: return if err occur
Browse files Browse the repository at this point in the history
  • Loading branch information
0x5459 committed Aug 11, 2023
1 parent 21ac3d5 commit a0e9d78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/impl/venus_market.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit a0e9d78

Please sign in to comment.