Skip to content
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

Remove optional in DefaultAsyncRecord. #706

Merged
merged 1 commit into from
Jan 26, 2021

Conversation

simlay
Copy link
Contributor

@simlay simlay commented Jan 21, 2021

This is dependent on infinyon/fluvio-protocol#4 but I've written the refactor using a work around.

Depends on infinyon/fluvio-protocol#5

We should also probably rename try_into_bytes to bytes.

Record updates:

  • Added AsRef implementation as_ref() returns &[u8]
  • to_utf8_lossy (returns a string)
  • to_bytes takes ownership and returns a Vec<u8>
  • impl TryFrom<Record> for String

Copy link
Contributor

@sehz sehz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great. Can you bump up version? Since it will be breaking API changes.

src/client/src/consumer.rs Outdated Show resolved Hide resolved
@simlay simlay force-pushed the remove-optional-in-record branch 2 times, most recently from 92f5048 to 7c99a0b Compare January 21, 2021 22:10
src/client/src/consumer.rs Outdated Show resolved Hide resolved
src/client/src/consumer.rs Outdated Show resolved Hide resolved
@simlay
Copy link
Contributor Author

simlay commented Jan 22, 2021

One of the tests is failing at the decode_from call. @sehz I'm not sure how to debug this. Thoughts?

@sehz
Copy link
Contributor

sehz commented Jan 22, 2021

One of the tests is failing at the decode_from call. @sehz I'm not sure how to debug this. Thoughts?

What's error message?

@simlay simlay force-pushed the remove-optional-in-record branch 3 times, most recently from 878958e to 9018214 Compare January 23, 2021 04:33
@simlay simlay force-pushed the remove-optional-in-record branch 2 times, most recently from 0998db1 to bf6420c Compare January 25, 2021 18:49
@@ -28,7 +28,7 @@ inputs:
minikube-version:
description: "Use a specific minikube version"
required: false
default: 'v1.13.1'
default: 'v1.17.0'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I bumped this hoping that it'll stabilize the CI on github runners.

@simlay simlay force-pushed the remove-optional-in-record branch 2 times, most recently from a68ee97 to 90b2b24 Compare January 25, 2021 21:57
Copy link
Contributor

@sehz sehz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants