Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Commit

Permalink
hc: use faster API call to avoid tight bid proposals
Browse files Browse the repository at this point in the history
Signed-off-by: Ignacio Hagopian <[email protected]>
  • Loading branch information
jsign committed Feb 24, 2022
1 parent f7725a9 commit d208378
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/lotusclient/lotusclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ func (c *Client) HealthCheck() error {
ctx, cancel := context.WithTimeout(c.ctx, requestTimeout)
defer cancel()
start := time.Now()
_, err := c.cmkt.MarketListIncompleteDeals(ctx)
log.Infof("MarketListIncompleteDeals call took %v", time.Since(start))
_, err := c.cmkt.MarketGetAsk(ctx)
log.Infof("MarketGetAsk call took %v (err: %v)", time.Since(start), err)
return err
}

Expand Down

0 comments on commit d208378

Please sign in to comment.