peerStatus to peerDescription in EndpointConnectionPool.java fixing incompatible type error

Signed-off-by: Mark Payne <markap14@hotmail.com>
This commit is contained in:
Mark Latimer 2015-04-27 20:52:54 +01:00 committed by Mark Payne
parent 6c3256e00a
commit 6e492b4082

View File

@ -258,7 +258,7 @@ public class EndpointConnectionPool {
} }
final PeerDescription peerDescription = peerStatus.getPeerDescription(); final PeerDescription peerDescription = peerStatus.getPeerDescription();
BlockingQueue<EndpointConnection> connectionQueue = connectionQueueMap.get(peerStatus); BlockingQueue<EndpointConnection> connectionQueue = connectionQueueMap.get(peerDescription);
if (connectionQueue == null) { if (connectionQueue == null) {
connectionQueue = new LinkedBlockingQueue<>(); connectionQueue = new LinkedBlockingQueue<>();
BlockingQueue<EndpointConnection> existing = connectionQueueMap.putIfAbsent(peerDescription, connectionQueue); BlockingQueue<EndpointConnection> existing = connectionQueueMap.putIfAbsent(peerDescription, connectionQueue);