Make control-r faster by not blocking on processing pending deletion requests. Fixed #22

This commit is contained in:
David Dworken 2022-11-09 15:07:00 -08:00
parent 36ff3d362c
commit 94722941cf
No known key found for this signature in database
2 changed files with 6 additions and 1 deletions

View File

@ -406,6 +406,12 @@ func TuiQuery(ctx *context.Context, gitCommit, initialQuery string) error {
}
p.Send(doneDownloadingMsg{})
}()
go func() {
err := ProcessDeletionRequests(ctx)
if err != nil {
p.Send(err)
}
}()
go func() {
banner, err := GetBanner(ctx, gitCommit)
if err != nil {

View File

@ -35,7 +35,6 @@ func main() {
query(ctx, strings.Join(os.Args[2:], " "))
case "tquery":
ctx := hctx.MakeContext()
lib.CheckFatalError(lib.ProcessDeletionRequests(ctx))
lib.CheckFatalError(lib.TuiQuery(ctx, GitCommit, strings.Join(os.Args[2:], " ")))
case "export":
ctx := hctx.MakeContext()