Skip to content

Commit

Permalink
cosmetic changes only
Browse files Browse the repository at this point in the history
  • Loading branch information
pohhsu committed Jul 7, 2023
1 parent 44a27a6 commit 663c7ab
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ams/AssetAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public override async Task MigrateAsync(CancellationToken cancellationToken)

if (resourceFilter != null)
{
// When a filter is used, it usually inlcude a small list of assets,
// When a filter is used, it usually include a small list of assets,
// The total count of asset can be extracted in advance without much perf hit.
filteredList = await assets.ToListAsync(cancellationToken);

Expand Down
2 changes: 1 addition & 1 deletion ams/AssetMigrationTracker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class AssetMigrationResult : MigrationResult

/// <summary>
/// Determine if the asset can be migrated.
/// The current supprted scenarios:
/// The current supported scenarios:
///
/// If it has .ism file, only mp4 format is supported.
/// If there is no .ism file, it can be copied over directly.
Expand Down
4 changes: 2 additions & 2 deletions ams/AssetMigrator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public override async Task MigrateAsync(CancellationToken cancellationToken)

if (resourceFilter != null)
{
// When a filter is used, it usually inlcude a small list of assets,
// When a filter is used, it usually include a small list of assets,
// The accurate total count of asset can be extracted in advance without much perf hit.
filteredList = await assets.ToListAsync(cancellationToken);

Expand Down Expand Up @@ -169,7 +169,7 @@ public async Task<MigrationResult> MigrateAsync(

if (asset.Data.StorageEncryptionFormat != MediaAssetStorageEncryptionFormat.None)
{
_logger.LogWarning("Asset {name} is encrypted using {format}", asset.Data.Name, asset.Data.StorageEncryptionFormat);
_logger.LogWarning("Asset {name} is encrypted using {format}", asset.Data.Name, asset.Data.StorageEncryptionFormat);
result.AssetType = AssetMigrationResult.AssetType_Encrypted;
}
else
Expand Down
4 changes: 2 additions & 2 deletions ams/StorageMigrator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public override async Task MigrateAsync(CancellationToken cancellationToken)

if (_storageOptions.Prefix != null)
{
// When a filter is used, it usually inlcude a small list of assets,
// When a filter is used, it usually include a small list of assets,
// The accurate total count of containers can be extracted in advance without much perf hit.
filteredList = await containers.ToListAsync();

Expand Down Expand Up @@ -117,7 +117,7 @@ private async Task<MigrationResult> MigrateAsync(
{
var containerClient = storageClient.GetBlobContainerClient(container.Name);

// Get the inital migration status from the container level's metadata list.
// Get the initial migration status from the container level's metadata list.
var result = await _tracker.GetMigrationStatusAsync(containerClient, cancellationToken);

// Check if already migrated.
Expand Down
4 changes: 2 additions & 2 deletions transform/PackageTransform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected override async Task<string> TransformAsync(
var (assetName, container, manifest, clientManifest) = details;
if (manifest == null) throw new ArgumentNullException(nameof(manifest));

// create a linke source which when disposed cancells all tasks.
// create a linked source which when disposed cancels all tasks.
using var source = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
cancellationToken = source.Token;

Expand Down Expand Up @@ -130,7 +130,7 @@ protected override async Task<string> TransformAsync(
while (allTasks.Count > 0)
{
var currentTask = await Task.WhenAny(allTasks);
// throw if any taks fails.
// throw if any tasks fails.
await currentTask;
allTasks.Remove(currentTask);
}
Expand Down
2 changes: 1 addition & 1 deletion transform/TransformFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public TransformFactory(
}
else
{
throw new ArgumentException("Paramter 'options' must be for MigratorOptions.");
throw new ArgumentException("Parameter 'options' must be for MigratorOptions.");
}

// There should be at least one transform.
Expand Down

0 comments on commit 663c7ab

Please sign in to comment.