Commit 285cd4a6 authored by Nick Craver's avatar Nick Craver

Clenaup: Message

parent c5034d50
......@@ -3,7 +3,7 @@
namespace StackExchange.Redis
{
sealed class MessageCompletable : ICompletable
internal sealed class MessageCompletable : ICompletable
{
private readonly RedisChannel channel;
......@@ -18,10 +18,8 @@ public MessageCompletable(RedisChannel channel, RedisValue message, Action<Redis
this.handler = handler;
}
public override string ToString()
{
return (string)channel;
}
public override string ToString() => (string)channel;
public bool TryComplete(bool isAsync)
{
if (handler == null) return true;
......
......@@ -3,7 +3,7 @@
namespace StackExchange.Redis
{
sealed partial class MessageQueue
internal sealed partial class MessageQueue
{
private readonly Queue<Message>
regular = new Queue<Message>(),
......@@ -30,6 +30,7 @@ public Message Dequeue()
/// <summary>
/// Checks both high-pri and regular queues to see if the next item is a PING, and if so: dequeues it and returns it
/// </summary>
/// <param name="queueLength">The current queue count.</param>
public Message DequeueUnsentPing(out int queueLength)
{
lock (regular)
......@@ -92,6 +93,7 @@ internal Message[] DequeueAll()
return arr;
}
}
internal void GetStormLog(StringBuilder sb)
{
lock(regular)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment