currently refactoring a lot

This commit is contained in:
kento2 2026-07-04 12:25:54 +02:00
parent 7fe7409a15
commit a32805a623
46 changed files with 571 additions and 642 deletions

View file

@ -23,7 +23,7 @@ dependencies {
api("org.mongodb:bson:5.8.0")
// http://forge.kentoj.de/scrow/-/packages/maven/de.kentoj.scrow:kencommandapi-core
api("de.kentoj.scrow:kencommandapi-core:0.21")
api("de.kentoj.scrow:kencommandapi-core:0.22")
}
publishing {

View file

@ -12,7 +12,7 @@ public interface InstanceManager {
*/
Result<ServerInstance, String> deployInstance(String template);
Result<Void, String> destroyInstance(String handle);
Result<Object, String> destroyInstance(String handle);
/**
* @return Flux with handles of running servers

View file

@ -23,7 +23,7 @@ public class InstanceManagerImpl implements InstanceManager {
}
@Override
public Result<Void, String> destroyInstance(String handle) {
public Result<Object, String> destroyInstance(String handle) {
var result = messageBroker.request("instance.destroy", new Document("handle", handle));
return result.mapSuccess(__ -> null);
}