From 44f5b8b274d984626a9b947bba35741e04c87ba2 Mon Sep 17 00:00:00 2001 From: Takashi Matsuda Date: Sat, 7 Aug 2021 15:49:30 +0900 Subject: [PATCH] use a pointer type on node.Peering for mutex --- core/core.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core.go b/core/core.go index 49f1185646b..250af72988a 100644 --- a/core/core.go +++ b/core/core.go @@ -85,7 +85,7 @@ type IpfsNode struct { // Online PeerHost p2phost.Host `optional:"true"` // the network host (server+client) - Peering peering.PeeringService `optional:"true"` + Peering *peering.PeeringService `optional:"true"` Filters *ma.Filters `optional:"true"` Bootstrapper io.Closer `optional:"true"` // the periodic bootstrapper Routing routing.Routing `optional:"true"` // the routing system. recommend ipfs-dht