Skip to content

Commit

Permalink
Fix: crush caused by creation 0 interval timer (#142)
Browse files Browse the repository at this point in the history
* fix crush caused by creation a 0 interval timer
  • Loading branch information
zl03jsj authored Jun 10, 2022
1 parent 2cbc330 commit 790a8c6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions api/clients/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package clients

import (
"context"
"time"

"github.com/filecoin-project/go-address"
"github.com/filecoin-project/venus-market/v2/config"
Expand Down Expand Up @@ -34,10 +33,7 @@ func ConvertWalletToISinge(fullNode v1api.FullNode, signer ISinger) error {
}

func NewMarketEvent(mctx metrics.MetricsCtx) (*marketevent.MarketEventStream, error) {
stream := marketevent.NewMarketEventStream(mctx, &localMinerValidator{}, &types3.RequestConfig{
RequestQueueSize: 30,
RequestTimeout: time.Second * 30,
})
stream := marketevent.NewMarketEventStream(mctx, &localMinerValidator{}, types3.DefaultConfig())
return stream, nil
}

Expand Down

0 comments on commit 790a8c6

Please sign in to comment.