force memoryType to persistent when it is not initialized

This commit is contained in:
Roberto Cirillo 2021-09-02 15:29:58 +02:00
parent d100ad4f13
commit 5fbf3e3091
1 changed files with 3 additions and 5 deletions

View File

@ -350,11 +350,9 @@ public class StorageIDResolver {
} }
StorageClient client; StorageClient client;
if(memory==null) if(memory==null)
client=new StorageClient(StorageIDResolver.class.getName(), StorageIDResolver.class.getSimpleName(), STORAGEID_RESOLVER, AccessType.PUBLIC); memory=MemoryType.PERSISTENT;
else client=new StorageClient(StorageIDResolver.class.getName(), StorageIDResolver.class.getSimpleName(), STORAGEID_RESOLVER, AccessType.PUBLIC, memory);
client=new StorageClient(StorageIDResolver.class.getName(), StorageIDResolver.class.getSimpleName(), STORAGEID_RESOLVER, AccessType.PUBLIC, memory);
return new StorageClientInstance(client, memory, storageId); return new StorageClientInstance(client, memory, storageId);
} }