Skip to content
This repository was archived by the owner on Jul 7, 2019. It is now read-only.

Commit 2a540bc

Browse files
committed
Minor code formattings.
1 parent d80ee48 commit 2a540bc

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

Enyim.Caching/Memcached/MemcachedNode.cs

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public bool IsAlive
6969

7070
/// <summary>
7171
/// Gets a value indicating whether the server is working or not.
72-
///
72+
///
7373
/// If the server is back online, we'll ercreate the internal socket pool and mark the server as alive so operations can target it.
7474
/// </summary>
7575
/// <returns>true if the server is alive; false otherwise.</returns>
@@ -282,7 +282,7 @@ public IPooledSocketResult Acquire()
282282
{
283283
message = "Pool is dead or disposed, returning null. " + this.endPoint;
284284
result.Fail(message);
285-
285+
286286
if (hasDebug) log.Debug(message);
287287

288288
return result;
@@ -342,7 +342,6 @@ public IPooledSocketResult Acquire()
342342
// free item pool is empty
343343
message = "Could not get a socket from the pool, Creating a new item. " + this.endPoint;
344344
if (hasDebug) log.Debug(message);
345-
346345

347346
try
348347
{
@@ -432,13 +431,12 @@ private void ReleaseSocket(PooledSocket socket)
432431
}
433432
else
434433
{
435-
// one of our previous sockets has died, so probably all of them
434+
// one of our previous sockets has died, so probably all of them
436435
// are dead. so, kill the socket (this will eventually clear the pool as well)
437436
socket.Destroy();
438437
}
439438
}
440439

441-
442440
~InternalPoolImpl()
443441
{
444442
try { ((IDisposable)this).Dispose(); }
@@ -621,20 +619,20 @@ event Action<IMemcachedNode> IMemcachedNode.Failed
621619

622620
#region [ License information ]
623621
/* ************************************************************
624-
*
622+
*
625623
* Copyright (c) 2010 Attila Kiskó, enyim.com
626-
*
624+
*
627625
* Licensed under the Apache License, Version 2.0 (the "License");
628626
* you may not use this file except in compliance with the License.
629627
* You may obtain a copy of the License at
630-
*
628+
*
631629
* http://www.apache.org/licenses/LICENSE-2.0
632-
*
630+
*
633631
* Unless required by applicable law or agreed to in writing, software
634632
* distributed under the License is distributed on an "AS IS" BASIS,
635633
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
636634
* See the License for the specific language governing permissions and
637635
* limitations under the License.
638-
*
636+
*
639637
* ************************************************************/
640638
#endregion

0 commit comments

Comments
 (0)