Skip to content

Commit

Permalink
undo whitespace changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Justyn Hunter committed Nov 7, 2023
1 parent 810db61 commit 0f84f72
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions WebReaper/Builders/ScraperEngineBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public class ScraperEngineBuilder

private IScheduler Scheduler { get; set; } = new InMemoryScheduler();
private IScraperConfigStorage? ConfigStorage { get; set; } = new InMemoryScraperConfigStorage();

protected IProxyProvider? ProxyProvider { get; set; }

public ScraperEngineBuilder WithContentParser(IContentParser contentParser)
Expand Down Expand Up @@ -193,7 +192,6 @@ public ScraperEngineBuilder GetWithBrowser(
ConfigBuilder.GetWithBrowser(startUrls, actionBuilder?.Invoke(new PageActionBuilder()));
return this;
}

public ScraperEngineBuilder GetWithBrowser(params string[] startUrls)
{
ConfigBuilder.GetWithBrowser(startUrls);
Expand Down Expand Up @@ -285,7 +283,6 @@ public ScraperEngineBuilder WithMongoDbCookieStorage(string connectionString, st
logger);
return this;
}

public ScraperEngineBuilder WithFileCookieStorage(string fileName)
{
SpiderBuilder.WithFileCookieStorage(fileName);
Expand Down Expand Up @@ -342,10 +339,8 @@ public ScraperEngineBuilder WithParallelismDegree(int parallelismDegree)
public async Task<ScraperEngine> BuildAsync()
{
SpiderBuilder.WithConfigStorage(ConfigStorage);

Check warning on line 341 in WebReaper/Builders/ScraperEngineBuilder.cs

View workflow job for this annotation

GitHub Actions / build

Possible null reference argument for parameter 'scraperConfigStorage' in 'SpiderBuilder SpiderBuilder.WithConfigStorage(IScraperConfigStorage scraperConfigStorage)'.

var config = ConfigBuilder.Build();
var spider = SpiderBuilder.Build();

await ConfigStorage.CreateConfigAsync(config);

return new ScraperEngine(_parallelismDegree, ConfigStorage, Scheduler, spider, Logger);
Expand Down

0 comments on commit 0f84f72

Please sign in to comment.