From 7f33db90d88edca1b116324526c09103a805682d Mon Sep 17 00:00:00 2001 From: Marcel Telka Date: Tue, 21 Feb 2023 11:10:38 +0100 Subject: [PATCH] lotus-miner info should show deals info without admin permission --- cmd/lotus-miner/info.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/cmd/lotus-miner/info.go b/cmd/lotus-miner/info.go index d791b0760..4afd18941 100644 --- a/cmd/lotus-miner/info.go +++ b/cmd/lotus-miner/info.go @@ -347,14 +347,12 @@ func handleMiningInfo(ctx context.Context, cctx *cli.Context, fullapi v1api.Full } } - { - fmt.Println() - - ws, err := nodeApi.WorkerStats(ctx) - if err != nil { - return xerrors.Errorf("getting worker stats: %w", err) - } + fmt.Println() + ws, err := nodeApi.WorkerStats(ctx) + if err != nil { + fmt.Printf("ERROR: getting worker stats: %s\n", err) + } else { workersByType := map[string]int{ sealtasks.WorkerSealing: 0, sealtasks.WorkerWindowPoSt: 0,