-
Notifications
You must be signed in to change notification settings - Fork 610
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify handling of chunkBufferSize = 0
Summary: We currently send a 0 credit message and then immediately a 1 credit message on every loop iteration. We can instead reduce this case to the size = 1 case before the loop and remove the extra check. The purpose of supporting 0 here is to allow deferring payload receipt until the subscription begins; once it has there is no need to treat this differently from a size of 1. Reviewed By: rhodo Differential Revision: D25537142 fbshipit-source-id: 48245e1b4d8db865f1aa2fe22bc445346f50c43d
- Loading branch information
1 parent
29ef30e
commit d03d99e
Showing
1 changed file
with
18 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters