public async ValueTask SaveAsync() { using (await _settingsAsyncLock.LockAsync()) { var config = new BlockStorageConfig(0, _size, _clusterMetadataMap); _settings.SetContent("config", config); } }
public async ValueTask SaveAsync() { using (await _settingsAsyncLock.LockAsync()) { await _blockStorage.SaveAsync(); var config = new ContentStorageConfig(0, _contentMetadataStorage.ToArray()); _settings.SetContent("Config", config); } }