@@ -167,7 +167,11 @@ func (df *DocsFilter) RefreshFrac(fraction frac.Fraction) {
167167 util .MustWriteFileAtomic (queueFilePath , []byte {}, tmpExt )
168168
169169 filter .processWg .Add (1 )
170- go df .processFrac (fraction , filter , true ) // nolint:errcheck // TODO: in progress
170+ go func () {
171+ if err := df .processFrac (fraction , filter , false ); err != nil {
172+ panic (fmt .Errorf ("docs filter refresh frac err: %s" , err ))
173+ }
174+ }()
171175 }
172176}
173177
@@ -281,7 +285,11 @@ func (df *DocsFilter) processFilter(filter *Filter, fracs fracmanager.List) {
281285 processFracInQueue := func (name string ) error {
282286 f := fracsByName [fracNameFromFilePath (name )]
283287 filter .processWg .Add (1 )
284- go df .processFrac (f , filter , false ) // nolint:errcheck // TODO: in progress
288+ go func () {
289+ if err := df .processFrac (f , filter , false ); err != nil {
290+ panic (fmt .Errorf ("docs filter process frac err: %s" , err ))
291+ }
292+ }()
285293
286294 return nil
287295 }
@@ -321,7 +329,12 @@ func (df *DocsFilter) processFrac(f frac.Fraction, filter *Filter, refresh bool)
321329 util .RemoveFile (tmpFilePath )
322330 return nil
323331 }
324- // TODO: don't read lids twice: f.Search() and f.FindLIDs()
332+
333+ // TODO: here we doing part of the work twice:
334+ // first time we find LIDs inside f.Search() and then find IDs by these LIDs.
335+ // Then we again find LIDs by earlier found IDs in f.FindLIDs().
336+ // We did it like this because otherwise we had to do serious f.Search() rewrite.
337+ // For now we're ok with some performance penalty.
325338 lids , err := f .FindLIDs (df .ctx , qpr .IDs .IDs ())
326339 if err != nil {
327340 return err
0 commit comments