`WabiSabiController`: Remove unnecessary lambdas
MODIFY
WalletWasabi.Backend/Controllers/WabiSabiController.cs
WalletWasabi.Backend/Controllers/WabiSabiController.cs
@@ -46,7 +46,7 @@ public class WabiSabiController : ControllerBase, IWabiSabiApiRequestHandler
public async Task<ConnectionConfirmationResponse> ConfirmConnectionAsync(ConnectionConfirmationRequest request, CancellationToken cancellationToken)
{
var before = DateTimeOffset.UtcNow;
- var ret = await IdempotencyRequestCache.GetCachedResponseAsync(request, action: (request, token) => Arena.ConfirmConnectionAsync(request, token), cancellationToken);
+ var ret = await IdempotencyRequestCache.GetCachedResponseAsync(request, action: Arena.ConfirmConnectionAsync, cancellationToken);
var duration = DateTimeOffset.UtcNow - before;
RequestTimeStatista.Instance.Add("connection-confirmation", duration);
@@ -57,7 +57,7 @@ public class WabiSabiController : ControllerBase, IWabiSabiApiRequestHandler
public async Task<InputRegistrationResponse> RegisterInputAsync(InputRegistrationRequest request, CancellationToken cancellationToken)
{
var before = DateTimeOffset.UtcNow;
- var ret = await IdempotencyRequestCache.GetCachedResponseAsync(request, action: (request, token) => Arena.RegisterInputAsync(request, token), cancellationToken);
+ var ret = await IdempotencyRequestCache.GetCachedResponseAsync(request, action: Arena.RegisterInputAsync, cancellationToken);
var duration = DateTimeOffset.UtcNow - before;
RequestTimeStatista.Instance.Add("input-registration", duration);
@@ -68,7 +68,7 @@ public class WabiSabiController : ControllerBase, IWabiSabiApiRequestHandler
public async Task RegisterOutputAsync(OutputRegistrationRequest request, CancellationToken cancellationToken)
{
var before = DateTimeOffset.UtcNow;
- await IdempotencyRequestCache.GetCachedResponseAsync(request, action: (request, token) => Arena.RegisterOutputCoreAsync(request, token), cancellationToken);
+ await IdempotencyRequestCache.GetCachedResponseAsync(request, action: Arena.RegisterOutputCoreAsync, cancellationToken);
var duration = DateTimeOffset.UtcNow - before;
RequestTimeStatista.Instance.Add("output-registration", duration);
@@ -78,7 +78,7 @@ public class WabiSabiController : ControllerBase, IWabiSabiApiRequestHandler
public async Task<ReissueCredentialResponse> ReissuanceAsync(ReissueCredentialRequest request, CancellationToken cancellationToken)
{
var before = DateTimeOffset.UtcNow;
- var ret = await IdempotencyRequestCache.GetCachedResponseAsync(request, action: (request, token) => Arena.ReissuanceAsync(request, token), cancellationToken);
+ var ret = await IdempotencyRequestCache.GetCachedResponseAsync(request, action: Arena.ReissuanceAsync, cancellationToken);
var duration = DateTimeOffset.UtcNow - before;
RequestTimeStatista.Instance.Add("credential-issuance", duration);

`WabiSabiController`: Remove unnecessary lambdas