Skip to content

Commit

Permalink
Merge pull request #98 from mo3et/s3/del-expire-data
Browse files Browse the repository at this point in the history
fix uncorrect getObjectImageInfo implement.
  • Loading branch information
mo3et committed Jul 2, 2024
2 parents 5eb5dd4 + 2a7e25b commit a0cbd3c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions s3/minio/minio.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import (
"context"
"errors"
"fmt"
"image"
"io"
"net/http"
"net/url"
Expand Down Expand Up @@ -501,11 +500,7 @@ func (m *Minio) FormData(ctx context.Context, name string, size int64, contentTy
}

func (m *Minio) GetImageThumbnailKey(ctx context.Context, name string) (string, error) {
var img image.Image
info, err := m.cache.GetImageObjectKeyInfo(ctx, name, func(ctx context.Context) (info *ImageInfo, err error) {
info, img, err = m.getObjectImageInfo(ctx, name)
return
})
info, img, err := m.getObjectImageInfo(ctx, name)
if err != nil {
return "", errs.Wrap(err)
}
Expand Down

0 comments on commit a0cbd3c

Please sign in to comment.