peer: update and use SyncMap in Brontide

This commit applies methods `ForEach` and `Len` to `Brontide`.
This commit is contained in:
yyforyongyu committed 2023-06-27 20:19:37 +08:00
1 parent a66d42c682
commit ccb86a9d1d
2 files changed
+66 -72

No files matched your search

+1 -1
View File
@@ -408,7 +408,7 @@ func createTestPeer(t *testing.T, notifier chainntnfs.ChainNotifier,
alicePeer.remoteFeatures = lnwire.NewFeatureVector(nil, lnwire.Features)
chanID := lnwire.NewChanIDFromOutPoint(channelAlice.ChannelPoint())
alicePeer.activeChannels[chanID] = channelAlice
alicePeer.activeChannels.Store(chanID, channelAlice)
alicePeer.wg.Add(1)
go alicePeer.channelManager()