Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Bielleman committed Jun 10, 2015
1 parent 3b299fc commit e5f468a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void Should_show_up_as_resolved_when_doing_a_multi_retry()
return true;
}

IssueRetry(c, () => Post(String.Format("/api/errors/retry"), new List<string> { c.UniqueMessageId }));
IssueRetry(c, () => Post("/api/errors/retry", new List<string> { c.UniqueMessageId }));

return false;
})
Expand Down Expand Up @@ -106,7 +106,7 @@ public void Should_show_up_as_resolved_when_doing_a_retry_all()
return true;
}

IssueRetry(c, () => Post<object>(String.Format("/api/errors/retry/all")));
IssueRetry(c, () => Post<object>("/api/errors/retry/all"));

return false;
})
Expand Down
2 changes: 1 addition & 1 deletion src/ServiceControl/Operations/AuditQueueImport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ bool TerminateIfForwardingIsEnabledButQueueNotWritable()
catch (Exception messageForwardingException)
{
//This call to RaiseCriticalError has to be on a seperate thread otherwise it deadlocks and doesn't stop correctly.
ThreadPool.QueueUserWorkItem(state => Configure.Instance.RaiseCriticalError(string.Format("Audit Import cannot start"), messageForwardingException));
ThreadPool.QueueUserWorkItem(state => Configure.Instance.RaiseCriticalError("Audit Import cannot start", messageForwardingException));
return true;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/ServiceControl/Operations/ErrorQueueImport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ bool TerminateIfForwardingQueueNotWritable()
catch (Exception messageForwardingException)
{
//This call to RaiseCriticalError has to be on a seperate thread otherwise it deadlocks and doesn't stop correctly.
ThreadPool.QueueUserWorkItem(state => Configure.Instance.RaiseCriticalError(string.Format("Error Import cannot start"), messageForwardingException));
ThreadPool.QueueUserWorkItem(state => Configure.Instance.RaiseCriticalError("Error Import cannot start", messageForwardingException));
return true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ bool TerminateIfForwardingIsEnabledButQueueNotWritable()
catch (Exception messageForwardingException)
{
//This call to RaiseCriticalError has to be on a seperate thread otherwise it deadlocks and doesn't stop correctly.
ThreadPool.QueueUserWorkItem(state => Configure.Instance.RaiseCriticalError(string.Format("Audit Import cannot start"), messageForwardingException));
ThreadPool.QueueUserWorkItem(state => Configure.Instance.RaiseCriticalError("Audit Import cannot start", messageForwardingException));
return true;
}
}
Expand Down

0 comments on commit e5f468a

Please sign in to comment.