-
Notifications
You must be signed in to change notification settings - Fork 12
test: Implement redis sink in Rust for on-success sink e2e test #157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Vaibhav Tiwari <[email protected]>
Signed-off-by: Vaibhav Tiwari <[email protected]>
Signed-off-by: Vaibhav Tiwari <[email protected]>
Signed-off-by: Vaibhav Tiwari <[email protected]>
vigith
left a comment
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.
This is not a simple redis sink, can you please document why it is implemented like this? This will help users when they browse the example and think why is this implemented in a different way :)
examples/redis-sink/src/main.rs
Outdated
| struct RedisTestSink { | ||
| hash_key: String, | ||
| message_count: usize, | ||
| inflight_messages: Arc<Mutex<Vec<SinkRequest>>>, |
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.
why do we need this?
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'll be honest I just gave cursor the golang implementation, and it spit this out.
Let me modify this to a proper implementation
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.
🤣
Signed-off-by: Vaibhav Tiwari <[email protected]>
This implementation is based upon the existing go-lang implementation.
In on-success sink implementation, a check was added to ensure min SDK version supporting on-success sink. For Rust SDK, this is v0.4.0
With the release of v0.4.0 for Rust SDK, we can now create a UD sink which can be utilized for on-success sink e2e test