getPeerScopeInternal method
Implementation
PeerScopeImpl getPeerScopeInternal(PeerId peer) {
return _peerScopes.putIfAbsent(peer, () {
_logger.fine('Creating new peer scope: $peer');
// Use PeerScopeImpl constructor
final scope = PeerScopeImpl(
_limiter.getPeerLimits(peer),
peer, // Pass the PeerId directly
edges: [_systemScope],
);
scope.incRef();
return scope;
});
}