GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — P/S refactoring Publisher.publish by sduskis · Pull Request #5018 · googleapis/google-cloud-java

Conversation

@sduskis

@sduskis sduskis commented Apr 25, 2019

Copy link
Copy Markdown
Contributor

publish() has a special case where the message is larger the the max byte count. That special case logic can be merged with the general scenario by using a list of batchesToSend rather than having a single one.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@sduskis
P/S refactoring Publisher.publish
677f339
`publish()` has a special case where the message is larger the the max byte count.  That special case logic can be merged with the general scenario by using a list of `batchesToSend` rather than having a single one.
@sduskis
sduskis requested a review from a team April 25, 2019 15:56
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 25, 2019
@codecov

codecov Bot commented Apr 25, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

Merging #5018 into master will increase coverage by <.01%.
The diff coverage is 85.71%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #5018      +/-   ##
============================================
+ Coverage     50.32%   50.32%   +<.01%     
+ Complexity    23680    23673       -7     
============================================
  Files          2238     2238              
  Lines        226060   226054       -6     
  Branches      24955    24959       +4     
============================================
+ Hits         113766   113767       +1     
+ Misses       103689   103683       -6     
+ Partials       8605     8604       -1
Impacted Files Coverage Δ Complexity Δ
...ain/java/com/google/cloud/pubsub/v1/Publisher.java 85.15% <85.71%> (+2.59%) 28 <0> (+1) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 909b0e8...677f339. Read the comment docs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

kolea2
kolea2 reviewed Apr 25, 2019
View reviewed changes
Comment thread ...le-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

kolea2
kolea2 approved these changes Apr 25, 2019
View reviewed changes
@codecov-io

codecov-io commented Apr 25, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

Merging #5018 into master will increase coverage by 0.02%.
The diff coverage is 85.71%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #5018      +/-   ##
============================================
+ Coverage     50.32%   50.35%   +0.02%     
- Complexity    23680    23706      +26     
============================================
  Files          2238     2238              
  Lines        226060   226266     +206     
  Branches      24955    25005      +50     
============================================
+ Hits         113769   113936     +167     
- Misses       103686   103725      +39     
  Partials       8605     8605
Impacted Files Coverage Δ Complexity Δ
...ain/java/com/google/cloud/pubsub/v1/Publisher.java 85.91% <85.71%> (+3.36%) 35 <0> (+8) ⬆️
...ud/storage/contrib/nio/testing/FakeStorageRpc.java 63.66% <0%> (+0.11%) 44% <0%> (+4%) ⬆️
...n/java/com/google/cloud/bigquery/BigQueryImpl.java 84.09% <0%> (+0.25%) 53% <0%> (+1%) ⬆️
...ge/contrib/nio/CloudStorageFileSystemProvider.java 61.73% <0%> (+0.46%) 71% <0%> (+1%) ⬆️
...le/cloud/storage/contrib/nio/CloudStoragePath.java 80.35% <0%> (+3.5%) 71% <0%> (+20%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 909b0e8...677f339. Read the comment docs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sduskis
sduskis merged commit abf92a3 into googleapis:master Apr 25, 2019
@sduskis
sduskis deleted the refactor_publish branch April 25, 2019 20:39
@JesseLovelace JesseLovelace mentioned this pull request May 1, 2019
Release v0.90.0 #5047
Merged
meltsufin pushed a commit that referenced this pull request Apr 29, 2026
@sduskis
P/S refactoring Publisher.publish (#5018)
9eed55d
`publish()` has a special case where the message is larger the the max byte count.  That special case logic can be merged with the general scenario by using a list of `batchesToSend` rather than having a single one.
meltsufin pushed a commit that referenced this pull request May 1, 2026
@sduskis
P/S refactoring Publisher.publish (#5018)
6237fa8
`publish()` has a special case where the message is larger the the max byte count.  That special case logic can be merged with the general scenario by using a list of `batchesToSend` rather than having a single one.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@kolea2 kolea2 kolea2 approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@sduskis @codecov-io @kolea2 @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.