From d2083785406ac542b99559b0a588db0cf5adc9ce Mon Sep 17 00:00:00 2001 From: Ignacio Hagopian Date: Tue, 22 Feb 2022 15:32:41 -0300 Subject: [PATCH] hc: use faster API call to avoid tight bid proposals Signed-off-by: Ignacio Hagopian --- service/lotusclient/lotusclient.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/lotusclient/lotusclient.go b/service/lotusclient/lotusclient.go index 7730b0b..58a769b 100644 --- a/service/lotusclient/lotusclient.go +++ b/service/lotusclient/lotusclient.go @@ -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 }