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

Add ObservableVectorTransaction #32

Merged
merged 9 commits into from
Sep 7, 2023
Merged

Add ObservableVectorTransaction #32

merged 9 commits into from
Sep 7, 2023

Conversation

jplatte
Copy link
Owner

@jplatte jplatte commented Sep 6, 2023

The eyeball-im changes are done, but this is missing:

  • Generalization of im-util's Filter and FilterMap to Vec<VectorDiff<T>> streams
  • Tests

@jplatte jplatte force-pushed the vec-txn branch 2 times, most recently from 1adb452 to b823345 Compare September 6, 2023 11:37
It doesn't match the upcoming changes to VectorSubscriber.
Copy link
Collaborator

@Hywan Hywan left a comment

Choose a reason for hiding this comment

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

So far, it looks good!

eyeball-im/src/vector/subscriber.rs Show resolved Hide resolved
eyeball-im/src/vector/subscriber.rs Outdated Show resolved Hide resolved
eyeball-im/src/vector/subscriber.rs Outdated Show resolved Hide resolved
eyeball-im-util/src/vector.rs Show resolved Hide resolved
eyeball-im/tests/it/batch.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@Hywan Hywan left a comment

Choose a reason for hiding this comment

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

Nicer!

Also, remove impl Stream for VectorSubscriber in favor of two separate
stream types, one mirroring the previous implementation and one that's
outputs batches, making it much easier to ensure that multiple diffs of
one transaction are handled as one unit.
No need to link to a type that's linked through the function signature
anyways.
@jplatte jplatte merged commit 9d6ae4b into main Sep 7, 2023
4 checks passed
@jplatte jplatte deleted the vec-txn branch September 7, 2023 10:58
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.

2 participants