Fix gestalt
This commit is contained in:
parent
4a4af2576d
commit
e3944dc3be
2
pom.xml
2
pom.xml
@ -12,7 +12,7 @@
|
||||
<maven.compiler.source>21</maven.compiler.source>
|
||||
<maven.compiler.target>21</maven.compiler.target>
|
||||
<native.maven.plugin.version>0.9.28</native.maven.plugin.version>
|
||||
<gestalt.version>0.24.1</gestalt.version>
|
||||
<gestalt.version>0.24.2</gestalt.version>
|
||||
<rocksdb.version>8.8.1</rocksdb.version>
|
||||
<imageName>rockserver-core</imageName>
|
||||
<mainClass>it.cavallium.rockserver.core.Main</mainClass>
|
||||
|
@ -22,7 +22,6 @@ public class ConfigParser {
|
||||
gsb = new GestaltBuilder();
|
||||
gsb
|
||||
.setTreatMissingArrayIndexAsError(false)
|
||||
.setTreatEmptyCollectionAsErrors(false)
|
||||
.setTreatNullValuesInClassAsErrors(false)
|
||||
.setTreatMissingValuesAsErrors(false)
|
||||
.addDecoder(new DataSizeDecoder())
|
||||
|
@ -42,15 +42,7 @@ public class ConfigPrinter {
|
||||
}
|
||||
|
||||
public static List<VolumeConfig> getVolumeConfigs(GlobalDatabaseConfig g) throws GestaltException {
|
||||
try {
|
||||
return List.of(g.volumes());
|
||||
} catch (GestaltException ex) {
|
||||
if (ex.getMessage().startsWith("Failed to get cached object from proxy config while calling method:")) {
|
||||
return List.of();
|
||||
} else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
return List.of(g.volumes());
|
||||
}
|
||||
|
||||
public static String stringifyGlobalDatabase(GlobalDatabaseConfig o) throws GestaltException {
|
||||
|
Loading…
x
Reference in New Issue
Block a user