Skip to content

Commit c5c9ce8

Browse files
committed
Rename to SyncSubscriptionDescription
1 parent 1c87293 commit c5c9ce8

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ abstract interface class SyncStreamDescription {
2121
///
2222
/// This includes the [SyncStreamDescription] along with information about the
2323
/// current sync status.
24-
abstract interface class SyncSubscriptionDefinition
24+
abstract interface class SyncSubscriptionDescription
2525
extends SyncStreamDescription {
2626
/// Whether this stream is active, meaning that the subscription has been
2727
/// acknownledged by the sync serivce.
@@ -87,7 +87,8 @@ abstract interface class SyncStreamSubscription
8787

8888
/// An `ActiveStreamSubscription` as part of the sync status in Rust.
8989
@internal
90-
final class CoreActiveStreamSubscription implements SyncSubscriptionDefinition {
90+
final class CoreActiveStreamSubscription
91+
implements SyncSubscriptionDescription {
9192
@override
9293
final String name;
9394
@override

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ final class SyncStreamStatus {
219219
final ProgressWithOperations? progress;
220220
final CoreActiveStreamSubscription _internal;
221221

222-
SyncSubscriptionDefinition get subscription => _internal;
222+
SyncSubscriptionDescription get subscription => _internal;
223223
StreamPriority get priority => _internal.priority;
224224
bool get isDefault => _internal.isDefault;
225225

packages/powersync_core/test/sync/utils.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ TypeMatcher<SyncStreamStatus> isStreamStatus({
7272
return matcher;
7373
}
7474

75-
TypeMatcher<SyncSubscriptionDefinition> isSyncSubscription({
75+
TypeMatcher<SyncSubscriptionDescription> isSyncSubscription({
7676
required Object name,
7777
required Object? parameters,
7878
}) {
79-
return isA<SyncSubscriptionDefinition>()
79+
return isA<SyncSubscriptionDescription>()
8080
.having((e) => e.name, 'name', name)
8181
.having((e) => e.parameters, 'parameters', parameters);
8282
}

0 commit comments

Comments
 (0)