Skip to content

Commit 449a667

Browse files
Update SdkComposer.cs
1 parent 6fc3e93 commit 449a667

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Sentry/Internal/SdkComposer.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ private ITransport CreateTransport()
2323
_options.LogDebug("Creating transport.");
2424

2525
// Start from either the transport given on options, or create a new HTTP transport.
26-
var transport = _options.Transport ?? CreateHttpTransport();
26+
var transport = _options.Transport ?? new LazyHttpTransport(_options);
2727

2828
// When a cache directory path is given, wrap the transport in a caching transport.
2929
if (!string.IsNullOrWhiteSpace(_options.CacheDirectoryPath))
@@ -75,11 +75,6 @@ You can set a different environment via SENTRY_ENVIRONMENT env var or programati
7575
return transport;
7676
}
7777

78-
private LazyHttpTransport CreateHttpTransport()
79-
{
80-
return new LazyHttpTransport(_options);
81-
}
82-
8378
public IBackgroundWorker CreateBackgroundWorker()
8479
{
8580
if (_options.BackgroundWorker is { } worker)

0 commit comments

Comments
 (0)