mirror of
https://github.com/JuLi0n21/thumbnailservice.git
synced 2026-06-05 02:36:28 +00:00
remove pdf dependency and replace with pdftotext...
This commit is contained in:
+1
-4
@@ -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