feat: update job

This commit is contained in:
Rogee
2025-05-06 11:20:28 +08:00
parent bb689c62e1
commit 7a960bee8a
2 changed files with 11 additions and 2 deletions

View File

@@ -77,7 +77,10 @@ func (c *OSSClient) Download(ctx context.Context, path, dest string, opts ...OSS
client = c.internalClient
}
if _, err := client.GetObjectToFile(ctx, request, dest); err != nil {
ossFuncs := []func(*oss.Options){
oss.OpReadWriteTimeout(time.Minute * 20),
}
if _, err := client.GetObjectToFile(ctx, request, dest, ossFuncs...); err != nil {
return err
}
return nil