DATAREDIS-1246 - Use Queue.offer(…) instead of Queue.add(…) to buffer Stream subscription overflow.

Using now the method implemented by SpscArrayQueue instead of the not implemented one.
This commit is contained in:
Mark Paluch
2020-11-11 09:56:06 +01:00
parent a4c2965d81
commit 3823da8f18

View File

@@ -364,7 +364,7 @@ class DefaultStreamReceiver<K, V extends Record<K, ?>> implements StreamReceiver
if (logger.isDebugEnabled()) {
logger.debug(String.format("[stream: %s] onStreamMessage(%s): Buffering overflow", key, message));
}
overflow.add(message);
overflow.offer(message);
}
}