From fba89db3586eb7646a8ecb4a0d3124318cc85286 Mon Sep 17 00:00:00 2001 From: sakno Date: Sat, 13 Jan 2024 01:33:56 +0200 Subject: [PATCH] Migration to primary ctor --- src/examples/RaftNode/Startup.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/examples/RaftNode/Startup.cs b/src/examples/RaftNode/Startup.cs index 2ba8f52d6..6406301a7 100644 --- a/src/examples/RaftNode/Startup.cs +++ b/src/examples/RaftNode/Startup.cs @@ -1,5 +1,4 @@ using DotNext; -using DotNext.Net.Cluster; using DotNext.Net.Cluster.Consensus.Raft; using DotNext.Net.Cluster.Consensus.Raft.Http; using Microsoft.AspNetCore.Connections; @@ -7,12 +6,8 @@ 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();