-
Notifications
You must be signed in to change notification settings - Fork 102
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
Conversation
} | ||
|
||
def storeFetch: F[Unit] = | ||
actor.ref.modify { state => |
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.
Looks a bit weird that we need to modify internal actor state from the another component.
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.
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".
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.
Up to you. I mentioned it only to make sure that this is intentional.
No description provided.