update micro in go mod and go fmt all the things

This commit is contained in:
Asim Aslam
2021-08-27 09:55:06 +01:00
parent eec2110f88
commit 84b9a63461
11 changed files with 41 additions and 25 deletions

View File

@@ -52,8 +52,8 @@ func (e *Thumbnail) Screenshot(ctx context.Context, req *thumbnail.ScreenshotReq
}
base := base64.StdEncoding.EncodeToString(file)
resp, err := e.imageService.Upload(ctx, &iproto.UploadRequest{
Base64: "data:image/png;base64, " + base,
Name: imageName,
Base64: "data:image/png;base64, " + base,
Name: imageName,
}, client.WithDialTimeout(20*time.Second), client.WithRequestTimeout(20*time.Second))
if err != nil {
return err