Light, fluffy, and always free - The AWS Local Emulator alternative
fix: Storage load after backend is created (#71)
GuanZitongc95dd1068e79
diff --git a/src/main/java/io/github/hectorvent/floci/core/storage/StorageFactory.java b/src/main/java/io/github/hectorvent/floci/core/storage/StorageFactory.javaindex 71e1887063..1c217f4bbb 100644--- a/src/main/java/io/github/hectorvent/floci/core/storage/StorageFactory.java+++ b/src/main/java/io/github/hectorvent/floci/core/storage/StorageFactory.java@@ -65,6 +65,9 @@ public class StorageFactory {default -> throw new IllegalArgumentException("Unknown storage mode: " + mode);};+ // load because loadAll() may run before the service is initialized+ backend.load();+allBackends.add(backend);return backend;}