From a255a41a4c8551e95e654559f24df052e2c7ee5e Mon Sep 17 00:00:00 2001 From: frrist Date: Tue, 18 Jan 2022 10:35:37 -0800 Subject: [PATCH] fix: panic due to res.Task being nil for skips --- chain/indexer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chain/indexer.go b/chain/indexer.go index a9a96ea69..e1017de32 100644 --- a/chain/indexer.go +++ b/chain/indexer.go @@ -402,7 +402,7 @@ func (t *TipSetIndexer) TipSet(ctx context.Context, ts *types.TipSet) error { if _, complete := completed[name]; !complete { taskOutputs[name] = model.PersistableList{t.buildSkippedTipsetReport(ts, name, start, "indexer not ready")} ll.Infow("task skipped", "task", name, "reason", "indexer not ready") - span.AddEvent(fmt.Sprintf("skipped task: %s", res.Task)) + span.AddEvent(fmt.Sprintf("skipped task: %s", name)) } } stats.Record(ctx, metrics.TipSetSkip.M(1))