Skip to content

Commit a0b18f4

Browse files
committed
refactor: cleanup
1 parent dba74d5 commit a0b18f4

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

src/ByteSync.Client/Services/Synchronizations/SynchronizationActionRemoteUploader.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ public async Task UploadForRemote(SharedActionsGroup sharedActionsGroup)
9797
try
9898
{
9999
await CloseAndUploadCurrentMultiZip();
100-
101-
// await Task.Delay(3000);
102100
}
103101
catch (Exception ex)
104102
{
@@ -112,7 +110,7 @@ public async Task UploadForRemote(SharedActionsGroup sharedActionsGroup)
112110
{
113111
await MultiZipPrepareSemaphore.WaitAsync();
114112

115-
// on crée le currentMultiUploadZip
113+
// create the currentMultiUploadZip
116114
var sharedFileDefinition = BuildSharedFileDefinition(sharedFileType);
117115

118116
_logger.LogInformation("Creating MultiUploadZip with id:{MultiZipId} for grouped upload (delta:{isDelta})",
@@ -183,7 +181,7 @@ public Task Abort()
183181
{
184182
return Task.Run(() =>
185183
{
186-
// L'abandon de la synchro a été demandé, on doit libérer les ressources
184+
// The synchronization has been requested to be abandoned; we must free up resources
187185
if (_currentMultiUploadZip != null)
188186
{
189187
try

src/ByteSync.Functions/Program.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,4 @@
100100
})
101101
.Build();
102102

103-
// using (var scope = host.Services.CreateScope())
104-
// {
105-
// var cosmosService = scope.ServiceProvider.GetRequiredService<ICosmosDbService>();
106-
// await (cosmosService as CosmosDbService)!.InitializeAsync();
107-
// }
108-
109103
host.Run();

0 commit comments

Comments
 (0)