Skip to content

Commit

Permalink
Merge pull request #2140 from moreal/bugfix/forkable-action-eval-conf…
Browse files Browse the repository at this point in the history
…iguration
  • Loading branch information
moreal authored Jul 18, 2023
2 parents 0b0b55b + cd1db06 commit 394eac7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ public class ForkableActionEvaluatorConfiguration : IActionEvaluatorConfiguratio

public class ForkableActionEvaluatorRange
{
public long Start { get; }
public long End { get; }
public long Start { get; set; }
public long End { get; set; }
}
8 changes: 4 additions & 4 deletions NineChronicles.Headless.Executable/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -257,11 +257,11 @@ public async Task Run(
},
ActionEvaluatorType.ForkableActionEvaluator => new ForkableActionEvaluatorConfiguration
{
Pairs = (configuration.GetValue<List<IConfiguration>>("Pairs") ??
throw new KeyNotFoundException()).Select(pair =>
Pairs = (configuration.GetSection("Pairs") ??
throw new KeyNotFoundException()).GetChildren().Select(pair =>
{
var range = pair.GetValue<ForkableActionEvaluatorRange>("Range") ??
throw new KeyNotFoundException();
var range = new ForkableActionEvaluatorRange();
pair.Bind("Range", range);
var actionEvaluatorConfiguration =
GetActionEvaluatorConfiguration(configuration.GetSection("ActionEvaluator")) ??
throw new KeyNotFoundException();
Expand Down

0 comments on commit 394eac7

Please sign in to comment.