mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-10-02 19:10:14 +02:00
sync: use synchronous locks instead of semaphores
This commit is contained in:
1 parent
76af2cbfc8
commit
a96b0e1e42
4 files changed
+89
-99
No files matched your search
@@ -144,7 +144,7 @@ namespace Notesnook.API.Services
|
||||
|
||||
public async Task DeleteUserAsync(string userId)
|
||||
{
|
||||
new SyncDeviceService(new SyncDevice(ref userId, ref userId)).ResetDevices();
|
||||
new SyncDeviceService(new SyncDevice(userId, userId)).ResetDevices();
|
||||
|
||||
var cc = new CancellationTokenSource();
|
||||
|
||||
@@ -204,7 +204,7 @@ namespace Notesnook.API.Services
|
||||
|
||||
public async Task<bool> ResetUserAsync(string userId, bool removeAttachments)
|
||||
{
|
||||
new SyncDeviceService(new SyncDevice(ref userId, ref userId)).ResetDevices();
|
||||
new SyncDeviceService(new SyncDevice(userId, userId)).ResetDevices();
|
||||
|
||||
var cc = new CancellationTokenSource();
|
||||
|
||||
|
||||
Reference in new issue
Block a user