Skip to content

Commit

Permalink
address feedback
Browse files Browse the repository at this point in the history
Signed-off-by: georgi-l95 <glazarov95@gmail.com>
  • Loading branch information
georgi-l95 committed Dec 16, 2024
1 parent 8e8bc26 commit 9305185
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public ConsumerStreamObserver(
@Override
public void onNext(SubscribeStreamResponse subscribeStreamResponse) {
final SubscribeStreamResponse.ResponseCase responseType = subscribeStreamResponse.getResponseCase();
if (lastKnownStatuses.size() == lastKnownStatusesCapacity) {
if (lastKnownStatuses.size() >= lastKnownStatusesCapacity) {
lastKnownStatuses.pollFirst();

Check warning on line 79 in simulator/src/main/java/com/hedera/block/simulator/grpc/impl/ConsumerStreamObserver.java

View check run for this annotation

Codecov / codecov/patch

simulator/src/main/java/com/hedera/block/simulator/grpc/impl/ConsumerStreamObserver.java#L79

Added line #L79 was not covered by tests
}
lastKnownStatuses.add(subscribeStreamResponse.toString());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public PublishStreamObserver(
*/
@Override
public void onNext(PublishStreamResponse publishStreamResponse) {
if (lastKnownStatuses.size() == lastKnownStatusesCapacity) {
if (lastKnownStatuses.size() >= lastKnownStatusesCapacity) {
lastKnownStatuses.pollFirst();

Check warning on line 67 in simulator/src/main/java/com/hedera/block/simulator/grpc/impl/PublishStreamObserver.java

View check run for this annotation

Codecov / codecov/patch

simulator/src/main/java/com/hedera/block/simulator/grpc/impl/PublishStreamObserver.java#L67

Added line #L67 was not covered by tests
}
lastKnownStatuses.add(publishStreamResponse.toString());
Expand Down

0 comments on commit 9305185

Please sign in to comment.