Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
devbased committed Sep 5, 2023
1 parent dde1c68 commit 161cae1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Mutex/Activities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static async Task UseApiThatCantBeCalledInParallelAsync(UseApiThatCantBeC
{
var logger = ActivityExecutionContext.Current.Logger;

logger.LogInformation("Sleeping for {SleepFor}...", input.SleepFor);
logger.LogInformation("Sleeping for '{SleepFor}'...", input.SleepFor);

await Task.Delay(input.SleepFor);

Expand Down
2 changes: 1 addition & 1 deletion src/Mutex/WorkflowWithMutex.workflow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public async Task RunAsync(WorkflowWithMutexInput input)

await using (var lockHandle = await WorkflowMutex.LockAsync(input.ResourceId, input.LockTimeout))
{
logger.LogInformation("[{WorkflowId}]: Acquired lock. Release signal ID: {ReleaseSignalId}", currentWorkflowId, lockHandle.ReleaseSignalName);
logger.LogInformation("[{WorkflowId}]: Acquired lock. Release signal ID: '{ReleaseSignalId}'", currentWorkflowId, lockHandle.ReleaseSignalName);

var notifyLockedInput = new NotifyLockedInput(input.ResourceId, lockHandle.ReleaseSignalName);
await Workflow.ExecuteActivityAsync(() => Activities.NotifyLocked(notifyLockedInput), ActivityOptions);
Expand Down

0 comments on commit 161cae1

Please sign in to comment.