Skip to content

Commit

Permalink
fix: should set StorageServiceImpl#basePath to true for elastic worker
Browse files Browse the repository at this point in the history
  • Loading branch information
D-D-H committed Mar 20, 2024
1 parent 6d89421 commit 90253b6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ public StorageServiceImpl(CipherService cipherService) {
@PostConstruct
private void init() {
if (isElasticWorker()) {
basePath = config.getStoragePath();
Validate.isTrue(Files.isDirectory(basePath));
available = true;
return;
}
Expand All @@ -96,7 +98,6 @@ private void init() {
if (config.getStoragePath() == null) {
return;
}

// TODO: check k8s environment
}

Expand Down

0 comments on commit 90253b6

Please sign in to comment.