@@ -41,7 +41,7 @@ public static void Configure(SentryUnityOptions options)
41
41
42
42
options . CrashedLastRun = ( ) => false ; // no way to recognize crashes in WebGL yet
43
43
44
- // Still cant' find out what's using Threads so:
44
+ // Still can't find out what's using Threads so:
45
45
options . AutoSessionTracking = false ;
46
46
options . DetectStartupTime = StartupTimeDetectionMode . None ;
47
47
options . DisableTaskUnobservedTaskExceptionCapture ( ) ;
@@ -69,7 +69,7 @@ public bool EnqueueEnvelope(Envelope envelope)
69
69
return true ;
70
70
}
71
71
72
- public Task FlushAsync ( TimeSpan timeout ) => Task . CompletedTask ; // TODO maybe we can implement this somehow?
72
+ public Task FlushAsync ( TimeSpan timeout ) => Task . CompletedTask ;
73
73
74
74
public int QueuedItems { get ; }
75
75
}
@@ -146,9 +146,6 @@ private void HandleFailure(HttpResponseMessage response, Envelope processedEnvel
146
146
processedEnvelope . TryGetEventId ( ) , Encoding . UTF8 . GetString ( www . uploadHandler . data ) ) ;
147
147
}
148
148
}
149
-
150
- // SDK is in debug mode, and envelope was too large. To help troubleshoot:
151
- // NOTE: likely no point to do this on WebGL - who would check the file (in IndexDB)?
152
149
}
153
150
154
151
private UnityWebRequest CreateWebRequest ( HttpRequestMessage message )
@@ -198,7 +195,7 @@ internal class UnityWebRequestMessageHandler : HttpMessageHandler
198
195
{
199
196
protected override Task < HttpResponseMessage > SendAsync ( HttpRequestMessage _ , CancellationToken __ )
200
197
{
201
- // if this throws, see usages of HttpTransport._httpClient
198
+ // if this throws, see usages of HttpTransport._httpClient - all should be overridden by UnityWebRequestTransport
202
199
throw new InvalidOperationException ( "UnityWebRequestMessageHandler must be unused" ) ;
203
200
}
204
201
}
0 commit comments