Skip to content

Commit

Permalink
Fix compile errors in example code
Browse files Browse the repository at this point in the history
  • Loading branch information
tbpg committed Oct 2, 2017
1 parent 1c4ca64 commit 5eaa2c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tika/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ If you don't have a running Tika Server, you can start one.
if err != nil {
log.Fatal(err)
}
cancel, err := s.Start()
cancel, err := s.Start(context.Background())
if err != nil {
log.Fatal(err)
}
Expand All @@ -55,7 +55,7 @@ create a client, and call client.Parse.
defer f.Close()
client := tika.NewClient(nil, s.URL())
body, err := client.Parse(context.Background, f)
body, err := client.Parse(context.Background(), f)
If you pass an *http.Client to tika.NewClient, it will be used for all requests.
Expand Down

0 comments on commit 5eaa2c3

Please sign in to comment.