From 1197d1ca69bb0f070f2bd1fbfae45d135b01a7ff Mon Sep 17 00:00:00 2001 From: Alexey Osipov Date: Mon, 14 Oct 2024 23:56:28 +0300 Subject: [PATCH] Fix build --- src/libp2p/Libp2p.Core/Discovery/PeerStore.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/libp2p/Libp2p.Core/Discovery/PeerStore.cs b/src/libp2p/Libp2p.Core/Discovery/PeerStore.cs index 4c3bccb6..aa7d849a 100644 --- a/src/libp2p/Libp2p.Core/Discovery/PeerStore.cs +++ b/src/libp2p/Libp2p.Core/Discovery/PeerStore.cs @@ -64,10 +64,11 @@ public PeerInfo GetPeerInfo(PeerId peerId) { return store.GetOrAdd(peerId, id => new PeerInfo()); } -} -public class PeerInfo -{ - public ByteString SignedPeerRecord { get; set; } - public HashSet? Addrs { get; set; } + public class PeerInfo + { + public ByteString? SignedPeerRecord { get; set; } + public HashSet? Addrs { get; set; } + } } +