this repo has no description
1package indexer 2 3import ( 4 "context" 5 6 "tangled.org/core/appview/models" 7 "tangled.org/core/appview/notify" 8 "tangled.org/core/log" 9) 10 11var _ notify.Notifier = &Indexer{} 12 13func (ix *Indexer) NewIssue(ctx context.Context, issue *models.Issue) { 14 l := log.FromContext(ctx).With("notifier", "indexer.NewIssue", "issue", issue) 15 l.Debug("indexing new issue") 16 err := ix.Issues.Index(ctx, *issue) 17 if err != nil { 18 l.Error("failed to index an issue", "err", err) 19 } 20}