code cleanup

This commit is contained in:
Volodymyr Smirnov 2020-11-02 11:39:12 +02:00
parent b4c5c1a507
commit cfcfe92784
12 changed files with 28 additions and 30 deletions

View File

@ -18,8 +18,8 @@ namespace MalwareMultiScan.Scanner.Services
{
private readonly IScanBackend _backend;
private readonly IConfiguration _configuration;
private readonly ILogger<ScanBackgroundJob> _logger;
private readonly IBackgroundJobClient _jobClient;
private readonly ILogger<ScanBackgroundJob> _logger;
/// <summary>
/// Initialize scan background job.

View File

@ -83,7 +83,7 @@ namespace MalwareMultiScan.Tests.Api
{
Duration = 100,
Status = ScanResultStatus.Succeeded,
Threats = new []{"Test"}
Threats = new[] {"Test"}
});
result = await _resultService.GetScanResult(result.Id);

View File

@ -80,9 +80,9 @@ I.e. when you define `callbackUrl=http://localhost:1234/scan-results`, the POST
```json
{
"Status":1,
"Duration":5,
"Threats":["Malware.Dummy.Result"]
"Status": 1,
"Duration": 5,
"Threats": ["Malware.Dummy.Result"]
}
```

View File

@ -25,8 +25,6 @@ services:
restart: on-failure
ports:
- "8888:8888"
expose:
- "8888"
depends_on:
- api
environment: