Skip to content

Commit 26f2464

Browse files
Unify reset-to-zero-value code
Make everything go via a single method that implements the RTLM4 definition.
1 parent 060be55 commit 26f2464

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/AblyLiveObjects/Internal/InternalDefaultLiveMap.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ internal final class InternalDefaultLiveMap: Sendable {
873873
internal mutating func resetData(userCallbackQueue: DispatchQueue) {
874874
// RTO4b2
875875
let previousData = data
876-
data = [:]
876+
resetDataToZeroValued()
877877

878878
// RTO4b2a
879879
let mapUpdate = DefaultLiveMapUpdate(update: previousData.mapValues { _ in .removed })

0 commit comments

Comments
 (0)