Skip to content

Commit

Permalink
fatal behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Jan 14, 2025
1 parent b014d2c commit a90b950
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions v2/sqlite_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"errors"
"fmt"
"os"
"time"

"github.com/bvinc/go-sqlite-lite/sqlite3"
Expand Down Expand Up @@ -58,12 +59,14 @@ func (w *sqlWriter) start(ctx context.Context) {
err := w.treeLoop(ctx)
if err != nil {
w.logger.Error("tree loop failed", "error", err)
os.Exit(1)
}
}()
go func() {
err := w.leafLoop(ctx)
if err != nil {
w.logger.Error("leaf loop failed", "error", err)
os.Exit(1)
}
}()
}
Expand Down

0 comments on commit a90b950

Please sign in to comment.