Skip to content

Commit 5df6672

Browse files
committed
refactor(cadente): remove parâmetro não usado no accept
1 parent b566958 commit 5df6672

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cadente/Sisk.Cadente/HttpHost.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ private void StartAccept ( int poolIndex ) {
165165
return;
166166
}
167167

168-
int rearmDelayMs = ProcessAcceptInline ( args, poolIndex );
168+
int rearmDelayMs = ProcessAcceptInline ( args );
169169
if (rearmDelayMs < 0)
170170
return;
171171

@@ -178,7 +178,7 @@ private void StartAccept ( int poolIndex ) {
178178

179179
private void OnAcceptCompleted ( object? sender, SocketAsyncEventArgs e ) {
180180
int poolIndex = (int) e.UserToken!;
181-
int rearmDelayMs = ProcessAcceptInline ( e, poolIndex );
181+
int rearmDelayMs = ProcessAcceptInline ( e );
182182
if (rearmDelayMs < 0)
183183
return;
184184

@@ -189,7 +189,7 @@ private void OnAcceptCompleted ( object? sender, SocketAsyncEventArgs e ) {
189189
}
190190

191191
[MethodImpl ( MethodImplOptions.AggressiveOptimization )]
192-
private int ProcessAcceptInline ( SocketAsyncEventArgs e, int poolIndex ) {
192+
private int ProcessAcceptInline ( SocketAsyncEventArgs e ) {
193193
if (e.SocketError != SocketError.Success || e.AcceptSocket is null) {
194194
var socketError = e.SocketError;
195195
e.AcceptSocket?.Dispose ();

0 commit comments

Comments
 (0)