diff options
author | Nick White <git@njw.name> | 2022-02-28 14:43:10 +0000 |
---|---|---|
committer | Nick White <git@njw.name> | 2022-02-28 14:43:10 +0000 |
commit | 54aca8994863f5c58bce0224bc943b81c60f5d04 (patch) | |
tree | aa28072dd4d910e60416d10f6311bfa547c215d2 | |
parent | a2a8d9780a19d592ff37d20eb36b5a31814e34fd (diff) |
bookpipeline: ensure context is initialised before using it, to avoid panic
-rw-r--r-- | cmd/bookpipeline/main.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/bookpipeline/main.go b/cmd/bookpipeline/main.go index ad1c171..11c5a41 100644 --- a/cmd/bookpipeline/main.go +++ b/cmd/bookpipeline/main.go @@ -120,6 +120,7 @@ func main() { ocredPattern := regexp.MustCompile(`.hocr$`) var ctx context.Context + ctx = context.Background() var conn Pipeliner switch *conntype { |