From 16fe560ed60fc60856641b675e49e0ab52fd94aa Mon Sep 17 00:00:00 2001 From: Jaz Volpert Date: Mon, 11 Sep 2023 20:31:05 +0000 Subject: [PATCH] Start the backfill in a goroutine --- search/firehose.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search/firehose.go b/search/firehose.go index b59451c14..e1b5a5cb9 100644 --- a/search/firehose.go +++ b/search/firehose.go @@ -47,7 +47,7 @@ func (s *Server) RunIndexer(ctx context.Context) error { if err != nil { return fmt.Errorf("loading backfill jobs: %w", err) } - s.bf.Start() + go s.bf.Start() d := websocket.DefaultDialer con, _, err := d.Dial(fmt.Sprintf("%s/xrpc/com.atproto.sync.subscribeRepos?cursor=%d", s.bgshost, cur), http.Header{})