Skip to content

Commit 82bfa80

Browse files
committed
activeSubscriptions -> subscriptions
1 parent 0d8ca55 commit 82bfa80

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/powersync_core/lib/src/sync/sync_status.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ final class SyncStatus {
121121
///
122122
/// This returns null when the database is currently being opened and we
123123
/// don't have reliable information about all included streams yet.
124-
Iterable<SyncStreamStatus>? get activeSubscriptions {
124+
Iterable<SyncStreamStatus>? get subscriptions {
125125
return _internalSubscriptions?.map((subscription) {
126126
return SyncStreamStatus._(subscription, downloadProgress);
127127
});

packages/powersync_core/test/sync/stream_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ void main() {
170170
status,
171171
emits(
172172
isSyncStatus(
173-
activeSubscriptions: [
173+
subscriptions: [
174174
isStreamStatus(
175175
subscription: isSyncSubscription(
176176
name: 'default_stream',

packages/powersync_core/test/sync/utils.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ TypeMatcher<SyncStatus> isSyncStatus({
88
Object? connecting,
99
Object? hasSynced,
1010
Object? downloadProgress,
11-
Object? activeSubscriptions,
11+
Object? subscriptions,
1212
}) {
1313
var matcher = isA<SyncStatus>();
1414
if (downloading != null) {
@@ -27,9 +27,9 @@ TypeMatcher<SyncStatus> isSyncStatus({
2727
matcher = matcher.having(
2828
(e) => e.downloadProgress, 'downloadProgress', downloadProgress);
2929
}
30-
if (activeSubscriptions != null) {
31-
matcher = matcher.having((e) => e.activeSubscriptions,
32-
'activeSubscriptions', activeSubscriptions);
30+
if (subscriptions != null) {
31+
matcher =
32+
matcher.having((e) => e.subscriptions, 'subscriptions', subscriptions);
3333
}
3434

3535
return matcher;

0 commit comments

Comments
 (0)