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

Use permit for fetch, rework permits #918

Merged
merged 8 commits into from
Mar 28, 2022
Merged

Use permit for fetch, rework permits #918

merged 8 commits into from
Mar 28, 2022

Conversation

bplommer
Copy link
Member

No description provided.

@bplommer bplommer marked this pull request as ready for review March 27, 2022 19:27
@bplommer bplommer requested review from LMnet and vlovgr and removed request for LMnet March 27, 2022 19:27
@bplommer bplommer changed the title Use permit for fetch Use permit for fetch, rework permits Mar 27, 2022
}

def storeFetch: F[Unit] =
actor.ref.modify { state =>
Copy link
Member

Choose a reason for hiding this comment

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

Looks a bit weird that we need to modify internal actor state from the another component.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I guess it's an artifact of an iterative transition away from having the actor be a separate encapsulated component. Maybe we should reconceptualise the state as "consumer state" rather than "actor state".

Copy link
Member

Choose a reason for hiding this comment

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

Up to you. I mentioned it only to make sure that this is intentional.

@bplommer bplommer merged commit 854dc30 into series/2.x Mar 28, 2022
@bplommer bplommer deleted the permit-for-fetch branch April 1, 2022 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants