Skip to content

Commit

Permalink
use M.size for session count
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundnoble committed Nov 7, 2024
1 parent 27bc1ee commit 40e2fcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/P2P/Node.hs
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ findNextPeer conf node = do
peers <- peerDbSnapshotSTM peerDbVar
!sessions <- readTVar sessionsVar
let peerCount = length peers
let sessionCount = length sessions
let sessionCount = M.size sessions

-- Check that there are peers
--
Expand Down

0 comments on commit 40e2fcc

Please sign in to comment.