Skip to content

Commit

Permalink
Migration to primary ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
sakno committed Jan 12, 2024
1 parent ecdafa3 commit fba89db
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/examples/RaftNode/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
using DotNext;
using DotNext.Net.Cluster;
using DotNext.Net.Cluster.Consensus.Raft;
using DotNext.Net.Cluster.Consensus.Raft.Http;
using Microsoft.AspNetCore.Connections;
using static System.Globalization.CultureInfo;

namespace RaftNode;

internal sealed class Startup
internal sealed class Startup(IConfiguration configuration)
{
private readonly IConfiguration configuration;

public Startup(IConfiguration configuration) => this.configuration = configuration;

private static Task RedirectToLeaderAsync(HttpContext context)
{
var cluster = context.RequestServices.GetRequiredService<IRaftCluster>();
Expand Down

0 comments on commit fba89db

Please sign in to comment.