mirror of
https://github.com/JuLi0n21/thumbnailservice.git
synced 2026-04-19 16:00:07 +00:00
remove pdf dependency and replace with pdftotext...
This commit is contained in:
@@ -66,10 +66,7 @@ func createPreview(filePath string, ftype pb.FileType, client pb.ThumbnailServic
|
||||
MaxHeight: 150,
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithTimeout(context.Background(), time.Second*10)
|
||||
defer cancel()
|
||||
|
||||
resp, err := client.GenerateThumbnail(ctx, req)
|
||||
resp, err := client.GenerateThumbnail(context.Background(), req)
|
||||
if err != nil {
|
||||
log.Fatalf("Error calling GenerateThumbnail: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user