Skip to content

Commit

Permalink
Merge pull request #373 from ipfs-force-community/opt/double-estimate…
Browse files Browse the repository at this point in the history
…-msgs

opt: reduce estimated messages
  • Loading branch information
LinZexiao committed Dec 8, 2023
2 parents e2bd8fd + e5928d0 commit e6f634e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/message_selector.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ func (w *work) selectMessage(ctx context.Context, appliedNonce *utils.NonceMap,
w.log.Infof("state actor nonce %d, latest nonce in ts %d, assigned nonce %d, nonce gap %d, want %d", actorNonce, nonceInLatestTs, addrInfo.Nonce, nonceGap, wantCount)

// get unfill message
selectCount := mathutil.MinUint64(wantCount*2, 100)
selectCount := mathutil.MinUint64(wantCount, 100)
messages, err := w.repo.MessageRepo().ListUnChainMessageByAddress(addrInfo.Addr, int(selectCount))
if err != nil {
return nil, fmt.Errorf("list unfill message error: %v", err)
Expand Down

0 comments on commit e6f634e

Please sign in to comment.