Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kerryjiang committed Jan 16, 2025
1 parent ab4e1b6 commit 42f7bd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/SuperSocket.Client/ConnectState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ private ConnectState(bool cancelled)
private static Lazy<ObjectPool<SocketSender>> _socketSenderPool = new Lazy<ObjectPool<SocketSender>>(() =>
{
var policy = new DefaultPooledObjectPolicy<SocketSender>();
var pool = new DefaultObjectPool<SocketSender>(policy, EasyClient.SocketSenderPoolSzie ?? EasyClient.DefaultSocketSenderPoolSzie);
var pool = new DefaultObjectPool<SocketSender>(policy, EasyClient.SocketSenderPoolSize ?? EasyClient.DefaultSocketSenderPoolSize);
return pool;
});

Expand Down
4 changes: 2 additions & 2 deletions src/SuperSocket.Client/EasyClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ public abstract class EasyClient : IEasyClient

public CompressionLevel CompressionLevel { get; set; } = CompressionLevel.NoCompression;

public static int? SocketSenderPoolSzie { get; set; }
public static int? SocketSenderPoolSize { get; set; }

internal static readonly int DefaultSocketSenderPoolSzie = 10;
internal static readonly int DefaultSocketSenderPoolSize = 10;

protected EasyClient()
: this(NullLogger.Instance)
Expand Down

0 comments on commit 42f7bd1

Please sign in to comment.