We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 634a452 commit b2c5bcbCopy full SHA for b2c5bcb
packages/core/lib/plugins/segment_destination.dart
@@ -35,10 +35,11 @@ class SegmentDestination extends DestinationPlugin with Flushable {
35
final succeeded = await analytics?.httpClient.startBatchUpload(
36
analytics!.state.configuration.state.writeKey, batch,
37
host: _apiHost);
38
- if (succeeded == null || !succeeded) {
+ if (succeeded == true) {
39
+ sentEvents.addAll(batch);
40
+ } else {
41
numFailedEvents += batch.length;
42
}
- sentEvents.addAll(batch);
43
} catch (e) {
44
45
} finally {
0 commit comments