提交更新

This commit is contained in:
super
2026-05-02 09:28:26 +08:00
parent aece8123c3
commit 3ce66a59ee
13 changed files with 380 additions and 33 deletions
@@ -32,6 +32,10 @@ public class RustfsObjectStorageService {
}
public String uploadText(String objectKey, String content) {
return uploadText(objectKey, content, true);
}
public String uploadText(String objectKey, String content, boolean verifyAfterUpload) {
if (!isConfigured()) {
throw new IllegalStateException("transient storage is not configured");
}
@@ -46,7 +50,9 @@ public class RustfsObjectStorageService {
.stream(stream, bytes.length, -1)
.contentType("application/json")
.build());
verifyObjectVisible(objectKey);
if (verifyAfterUpload) {
verifyObjectVisible(objectKey);
}
return objectKey;
} catch (Exception ex) {
last = ex;