From dcfcdde87beffd062b9b4b6ebe9353d4508f76b6 Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Tue, 8 Aug 2023 14:54:51 +0800 Subject: [PATCH] minio: preview image cache --- internal/rpc/third/s3.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/internal/rpc/third/s3.go b/internal/rpc/third/s3.go index 05255ceca..47b56e251 100644 --- a/internal/rpc/third/s3.go +++ b/internal/rpc/third/s3.go @@ -163,14 +163,6 @@ func (t *thirdServer) AccessURL(ctx context.Context, req *third.AccessURLReq) (* opt.Image.Width, _ = strconv.Atoi(req.Query["width"]) opt.Image.Height, _ = strconv.Atoi(req.Query["height"]) log.ZDebug(ctx, "AccessURL image", "name", req.Name, "option", opt.Image) - case "video": - opt.Video = &s3.Video{} - opt.Video.Format = req.Query["format"] - opt.Video.Width, _ = strconv.Atoi(req.Query["width"]) - opt.Video.Height, _ = strconv.Atoi(req.Query["height"]) - millisecond, _ := strconv.Atoi(req.Query["time"]) - opt.Video.Time = time.Millisecond * time.Duration(millisecond) - log.ZDebug(ctx, "AccessURL video", "name", req.Name, "option", opt.Video) default: return nil, errs.ErrArgs.Wrap("invalid query type") }