runStorageHealthCheck
suspend fun runStorageHealthCheck(service: GameServiceImpl, testConf: CoreConfig? = null, save: Boolean = true): Exception?
Runs a health check on the configured game storage backend. If remote (MongoDB) storage is configured, verifies connectivity and functionality. On failure, automatically falls back to local file storage if save is true.
Return
An exception if the health check failed, null if successful.
Parameters
service
The game service implementation to test.
testConf
Optional configuration to test (defaults to loading from file).
save
Whether to save the fallback configuration if remote storage fails.