control plugin fix LocalDiskRuleStorage mkdirs (#11620)

This commit is contained in:
hth 2024-01-11 17:08:55 +08:00 committed by GitHub
parent 84900756d1
commit b4a380f15b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,7 +59,7 @@ public class LocalDiskRuleStorage implements RuleStorage {
private File getConnectionRuleFile() {
File baseDir = new File(localRuleBaseDir, "data" + File.separator + "connection" + File.separator);
if (!baseDir.exists()) {
baseDir.mkdir();
baseDir.mkdirs();
}
return new File(baseDir, "limitRule");
}