-
-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(minor) breaking api change: BlockingCommitOffsets => CommitOffsetsSync
After the prior comits adding CommitRecords and CommitUncommittedOffsets, there is a much more valid reason for this change: consistency & docs. ProduceSync was added a bit ago, and I've been well aware of the inconsistency between BlockingCommitOffsets and ProduceSync. Ideally, they would have the same type of name. I think I initially started with CommitOffsetsSync, but thought Blocking was better. I'm not sure that is the case anymore. Second, now that we have four (4) ways to commit, I think it would be very good if all four methods are next to each other in documentation. Although only two methods are recommended (CommitRecords and, better, CommitUncommittedOffsets), it is great now to have all methods start with Commit for documentation proximity (since we cannot control godoc's alphabetical ordering). Lastly, a side benefit of breaking this is that now anybody using it will be forced to notice the change and then potentially see that an even better API was added: CommitUncommittedOffsets.
- Loading branch information
Showing
3 changed files
with
39 additions
and
38 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
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
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