Skip to content

Commit

Permalink
renamed property
Browse files Browse the repository at this point in the history
  • Loading branch information
shukriadams committed Oct 9, 2024
1 parent efe1f7d commit 8912f15
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Tetrifact.Core/ArchiveService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ private async Task ArchiveDotNetZip(string packageId, string archivePathTemp)
{
foreach (ManifestItem file in manifest.Files)
{
ZipArchiveEntry zipEntry = archive.CreateEntry(file.Path, _settings.DownloadArchiveCompression);
ZipArchiveEntry zipEntry = archive.CreateEntry(file.Path, _settings.ArchiveCompressionLevel);

using (Stream zipEntryStream = zipEntry.Open())
{
Expand Down
2 changes: 1 addition & 1 deletion src/Tetrifact.Core/ISettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public interface ISettings
/// <summary>
/// Zip compression for downloadable builds. Allowed values Optimal | Fastest | NoCompression | SmallestSize.
/// </summary>
CompressionLevel DownloadArchiveCompression { get; set; }
CompressionLevel ArchiveCompressionLevel { get; set; }

/// <summary>
/// If true, package autoprune will run
Expand Down
4 changes: 2 additions & 2 deletions src/Tetrifact.Core/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class Settings : ISettings

public bool AutoCreateArchiveOnPackageCreate { get; set; }

public CompressionLevel DownloadArchiveCompression { get; set; }
public CompressionLevel ArchiveCompressionLevel { get; set; }

public bool PruneEnabled { get; set; }

Expand Down Expand Up @@ -120,7 +120,7 @@ public Settings()
this.AuthorizationLevel = AuthorizationLevel.None;
this.CacheTimeout = 60 * 60; // 1 hour
this.CleanCronMask = "0 0 * * *"; // once a day at midnight
this.DownloadArchiveCompression = CompressionLevel.Optimal;
this.ArchiveCompressionLevel = CompressionLevel.Optimal;
this.StorageCompressionEnabled = false;
this.LinkLockWaitTime = 1000; // 1 second
this.ListPageSize = 20;
Expand Down
2 changes: 1 addition & 1 deletion src/Tetrifact.Web/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerF
Console.WriteLine($"Authorization level: {settings.AuthorizationLevel}");
Console.WriteLine($"Autocreate archive on package create: {settings.AutoCreateArchiveOnPackageCreate}");
Console.WriteLine($"Cache timeout: {settings.CacheTimeout}");
Console.WriteLine($"Download archive compression: {settings.DownloadArchiveCompression}");
Console.WriteLine($"Download archive compression: {settings.ArchiveCompressionLevel}");
Console.WriteLine($"Index tag list length: {settings.IndexTagListLength}");
Console.WriteLine($"Is storage compression enabled: {settings.StorageCompressionEnabled}");
Console.WriteLine($"Link lock wait time: {settings.LinkLockWaitTime}");
Expand Down

0 comments on commit 8912f15

Please sign in to comment.