Skip to content

Commit 8b90f03

Browse files
authored
Update src/ModelContextProtocol.Core/McpSessionHandler.cs
1 parent b9c408e commit 8b90f03

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ModelContextProtocol.Core/McpSessionHandler.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,7 @@ private void HandleMessageWithId(JsonRpcMessage message, JsonRpcMessageWithId me
357357
LogRequestHandlerCalled(EndpointName, request.Method);
358358
long startingTimestamp = Stopwatch.GetTimestamp();
359359
JsonNode? result = await handler(request, cancellationToken).ConfigureAwait(false);
360-
TimeSpan elapsed = GetElapsed(startingTimestamp);
361-
LogRequestHandlerCompleted(EndpointName, request.Method, elapsed.TotalMilliseconds);
360+
LogRequestHandlerCompleted(EndpointName, request.Method, GetElapsed(startingTimestamp).TotalMilliseconds);
362361

363362
await SendMessageAsync(new JsonRpcResponse
364363
{

0 commit comments

Comments
 (0)