Skip to content

Commit d7e9f00

Browse files
committed
Small fixes
1 parent 4c912c3 commit d7e9f00

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

PowerSync/PowerSync.Common/Client/Sync/Bucket/BucketStorageAdapter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public interface IBucketStorageEvent;
106106

107107
public class CrudUpdateEvent : IBucketStorageEvent;
108108

109-
public EventStream<CrudUpdateEvent> OnCrudUpdate = new();
109+
public EventStream<CrudUpdateEvent> OnCrudUpdate { get; } = new();
110110

111111
public BucketStorageEvents()
112112
{

PowerSync/PowerSync.Common/DB/IDBAdapter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ public class DBAdapterEvents : EventManager
9191
{
9292
public interface IDBAdapterEvent;
9393

94-
public class TablesUpdatedEvent(INotification tablesUpdatedNotification)
94+
public class TablesUpdatedEvent(INotification tablesUpdatedNotification) : IDBAdapterEvent
9595
{
9696
public INotification TablesUpdated { get; set; } = tablesUpdatedNotification;
9797
}
9898

99-
public EventStream<TablesUpdatedEvent> OnTablesUpdated = new();
99+
public EventStream<TablesUpdatedEvent> OnTablesUpdated { get; } = new();
100100

101101
public DBAdapterEvents()
102102
{

PowerSync/PowerSync.Common/MDSQLite/MDSQLiteAdapter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ protected virtual void LoadExtension(SqliteConnection db)
137137

138138
public void Close()
139139
{
140-
Events.Close();
141140
tablesUpdatedCts?.Cancel();
142141
try { tablesUpdatedTask?.Wait(TimeSpan.FromSeconds(2)); } catch { }
143142
writeConnection?.Close();
144143
readConnection?.Close();
144+
Events.Close();
145145
}
146146

147147
public async Task<NonQueryResult> Execute(string query, object?[]? parameters = null)

0 commit comments

Comments
 (0)