Skip to content

Commit

Permalink
fix: panic due to res.Task being nil for skips
Browse files Browse the repository at this point in the history
  • Loading branch information
frrist committed Jan 18, 2022
1 parent fe9a838 commit bf88ce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chain/indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit bf88ce4

Please sign in to comment.