Fix nullability warning.
MODIFY
WalletWasabi/Tor/Http/TorHttpClient.cs
WalletWasabi/Tor/Http/TorHttpClient.cs
@@ -24,13 +24,13 @@ namespace WalletWasabi.Tor.Http
private volatile bool _disposedValue = false; // To detect redundant calls
- public TorHttpClient(Uri baseUri, EndPoint? torSocks5EndPoint, bool isolateStream = false) :
+ public TorHttpClient(Uri baseUri, EndPoint torSocks5EndPoint, bool isolateStream = false) :
this(() => baseUri, torSocks5EndPoint, isolateStream)
{
baseUri = Guard.NotNull(nameof(baseUri), baseUri);
}
- public TorHttpClient(Func<Uri> baseUriAction, EndPoint? torSocks5EndPoint, bool isolateStream = false)
+ public TorHttpClient(Func<Uri> baseUriAction, EndPoint torSocks5EndPoint, bool isolateStream = false)
{
BaseUriGetter = Guard.NotNull(nameof(baseUriAction), baseUriAction);

MODIFY
WalletWasabi/WebClients/Wasabi/HttpClientFactory.cs
WalletWasabi/WebClients/Wasabi/HttpClientFactory.cs
@@ -23,7 +23,7 @@ namespace WalletWasabi.WebClients.Wasabi
TorEndpoint = torEndPoint;
BackendUriGetter = backendUriGetter;
- if (torEndPoint is { })
+ if (TorEndpoint is { })
{
BackendHttpClient = new TorHttpClient(BackendUriGetter, TorEndpoint, isolateStream: false);
}

Fix nullability warning.