Skip to content

Commit

Permalink
fix(bosa): remove crab versions check
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneD committed Nov 8, 2024
1 parent 83286a9 commit 74f6b2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 45 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ public static async Task Main(string[] args)
var connectionString = hostContext.Configuration.GetConnectionString("Integration")
?? throw new ArgumentNullException("hostContext.Configuration.GetConnectionString(\"Integration\")");
services.AddSingleton<DatabaseSetup>(_ => new DatabaseSetup(connectionString));
services.AddTransient<IPostalInfoRepository, PostalInfoRepository>(_ => new PostalInfoRepository(connectionString));
services.AddTransient<IRegistryService, PostalInfoService>();
Expand Down Expand Up @@ -113,7 +111,7 @@ public static async Task Main(string[] args)
LogResponse = true
})
: new AmazonS3Client();
return new S3BlobClient(s3Client, options.UploadBucket);
});
Expand All @@ -124,7 +122,7 @@ public static async Task Main(string[] args)
return new AsyncFtpClient(options.Host, options.Username, options.Password, options.Port ?? 0);
});
services.AddHostedService<FullDownloadService>();
})
.UseConsoleLifetime()
Expand All @@ -140,8 +138,6 @@ public static async Task Main(string[] args)
await DistributedLock<Program>.RunAsync(
async () =>
{
host.Services.GetRequiredService<DatabaseSetup>().CheckIfDataPresent();
await host.RunAsync().ConfigureAwait(false);
},
DistributedLockOptions.LoadFromConfiguration(configuration),
Expand Down

0 comments on commit 74f6b2b

Please sign in to comment.