Skip to content

Commit e492b04

Browse files
authored
Update Publisher.java
1 parent cc44d4b commit e492b04

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1

google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -702,11 +702,11 @@ private static class MessagesBatch {
702702
private int batchedBytes;
703703
private String orderingKey;
704704

705-
public MessagesBatch(String orderingKey) {
705+
private MessagesBatch(String orderingKey) {
706706
this.orderingKey = orderingKey;
707707
}
708708

709-
public OutstandingBatch popOutstandingBatch() {
709+
private OutstandingBatch popOutstandingBatch() {
710710
OutstandingBatch batch = new OutstandingBatch(messages, batchedBytes, orderingKey);
711711
reset();
712712
return batch;

0 commit comments

Comments
 (0)