Skip to content

Commit 7061dc2

Browse files
authored
Merge pull request #63 from MrSuttonmann/p2p-peer-count
Pin P2P snapshot key to p2p (SnakeCaseLower would emit p2_p)
2 parents a3d73ef + 3ed0daf commit 7061dc2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

dotnet/src/FlightJar.Core/State/RegistrySnapshot.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ public sealed record RegistrySnapshot(
2727
/// can show connection state and peer count. Null when federation is
2828
/// disabled (env kill switch <c>P2P_ENABLED=0</c>) and the service
2929
/// was never registered.</summary>
30+
/// <remarks>The explicit JSON name pins the wire key to <c>p2p</c>;
31+
/// the global SnakeCaseLower policy would otherwise emit <c>p2_p</c>
32+
/// because it inserts an underscore between the digit and trailing
33+
/// uppercase letter.</remarks>
34+
[System.Text.Json.Serialization.JsonPropertyName("p2p")]
3035
public SnapshotP2PStatus? P2P { get; init; }
3136

3237
public static RegistrySnapshot Empty { get; } = new(

0 commit comments

Comments
 (0)