fix 修复 minio 上传, 因 socket 导致 available 获取数值不精确问题
This commit is contained in:
parent
517c5705b6
commit
94b09c3fc0
|
@ -79,6 +79,8 @@ public class MinioOssStrategy extends AbstractOssStrategy {
|
|||
@Override
|
||||
public UploadResult upload(InputStream inputStream, String path, String contentType) {
|
||||
try {
|
||||
// 解决 inputStream.available() 再 socket 下传输延迟问题 导致获取数值不精确
|
||||
Thread.sleep(1000);
|
||||
minioClient.putObject(PutObjectArgs.builder()
|
||||
.bucket(properties.getBucketName())
|
||||
.object(path)
|
||||
|
|
Loading…
Reference in New Issue