Skip to content

Commit

Permalink
Reapply "Fix stats chain (#487)"
Browse files Browse the repository at this point in the history
This reverts commit e4f089c.
  • Loading branch information
hiroshihorie committed Sep 22, 2024
1 parent 6bf46bb commit ec0f231
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Sources/LiveKit/Types/Statistics.swift
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,8 @@ public class InboundRtpStreamStatistics: ReceivedRtpStreamStatistics {
public let retransmittedPacketsReceived: UInt64?
public let retransmittedBytesReceived: UInt64?

public let previous: InboundRtpStreamStatistics?
// Weak reference to previous stat so we can compare later.
public weak var previous: InboundRtpStreamStatistics?

init?(id: String,
timestamp: Double,
Expand Down Expand Up @@ -707,7 +708,8 @@ public class OutboundRtpStreamStatistics: SentRtpStreamStatistics {
public let active: Bool?
public let scalabilityMode: String?

public let previous: OutboundRtpStreamStatistics?
// Weak reference to previous stat so we can compare later.
public weak var previous: OutboundRtpStreamStatistics?

init?(id: String,
timestamp: Double,
Expand Down

0 comments on commit ec0f231

Please sign in to comment.