This repository was archived by the owner on Nov 8, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
feat: Errors consumer polls producer #52
Open
lynnagara
wants to merge
29
commits into
main
Choose a base branch
from
poll-producer
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 19 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
b122950
feat: Errors consumer polls producer
lynnagara 808840c
ignore clippy
lynnagara 09585e6
Merge branch 'main' into poll-producer
lynnagara 0dceabe
Merge branch 'main' into poll-producer
lynnagara 8b46b4e
fix clippy
lynnagara fb58453
only poll every 100ms
lynnagara 98452e7
switch to threaded producer
lynnagara 5017ae8
switch to threaded producer
lynnagara 377e4a5
print stuff
lynnagara c212505
commit offsets
lynnagara 6ecb657
get timestamp from message
lynnagara 678ebfa
linting
lynnagara 8c2b18e
Merge branch 'main' into poll-producer
lynnagara 09241f3
wait for producer callback to commit offsets
lynnagara 8def002
Merge remote-tracking branch 'origin/main' into poll-producer
lynnagara b492729
turn off logging
lynnagara f605b91
commit the right offset
lynnagara 47f6a02
update last commit time
lynnagara 3ef068d
remove condition to debug
lynnagara 782fc69
Revert "remove condition to debug"
lynnagara 8ff5c82
Merge branch 'main' into poll-producer
lynnagara fad5c1a
fix merge issues
lynnagara 0a5e5e6
rewrite committing
lynnagara 570b3c6
Merge remote-tracking branch 'origin/main' into poll-producer
lynnagara fee1448
fix test
lynnagara 9a5c5dc
unwrap_or_else
lynnagara 48b659e
don't attempt to commit if there is nothing to commit
lynnagara 6dd7e7f
fix bug in committing
lynnagara 7eac755
Merge remote-tracking branch 'origin/main' into poll-producer
lynnagara File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you plan to start using futures instead? The issue with this approach, I think, is that it puts you in a CPU tight loop while you wait for the message to be produced, while you can leave the CPU free by waiting on a fuiture.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think using futures might make more sense. But this is not actually a synchronous function currently and we are not waiting. It fires a delivery callback when it's done.