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

ref(server): Remove project actors #1025

Merged
merged 32 commits into from
Jun 30, 2021
Merged

ref(server): Remove project actors #1025

merged 32 commits into from
Jun 30, 2021

Conversation

RaduW
Copy link
Contributor

@RaduW RaduW commented Jun 18, 2021

This PR refactors the ProjectCache - Project actors.
Project is now a simple structure (no more actor functionality) and ProjectCache is responsible
with handling all the messages that Project used to resolve.

@RaduW RaduW requested review from jan-auer and jjbayer June 18, 2021 14:34
@RaduW RaduW marked this pull request as ready for review June 18, 2021 14:49
@RaduW RaduW requested a review from a team June 18, 2021 14:49
relay-metrics/src/aggregation.rs Outdated Show resolved Hide resolved
relay-metrics/src/aggregation.rs Outdated Show resolved Hide resolved
relay-metrics/src/aggregation.rs Outdated Show resolved Hide resolved
relay-server/src/actors/project.rs Outdated Show resolved Hide resolved
relay-server/src/actors/project.rs Outdated Show resolved Hide resolved
relay-server/src/actors/project_cache.rs Outdated Show resolved Hide resolved
relay-server/src/actors/project_cache.rs Outdated Show resolved Hide resolved
relay-server/src/actors/project_cache.rs Outdated Show resolved Hide resolved
relay-server/src/actors/envelopes.rs Show resolved Hide resolved
relay-server/src/actors/envelopes.rs Outdated Show resolved Hide resolved
@RaduW RaduW requested a review from jan-auer June 28, 2021 17:31
relay-server/src/actors/project.rs Outdated Show resolved Hide resolved
relay-server/src/actors/project.rs Outdated Show resolved Hide resolved
@@ -193,6 +155,11 @@ pub struct FetchProjectState {
pub no_cache: bool,
}

impl Message for FetchProjectState {
type Result = Result<ProjectStateResponse, ()>;
Copy link
Member

Choose a reason for hiding this comment

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

It's a pretty redundant type, but there's not a lot of use in either keeping nor removing it.

relay-server/src/actors/project_cache.rs Outdated Show resolved Hide resolved
@RaduW RaduW enabled auto-merge (squash) June 30, 2021 08:02
@RaduW RaduW disabled auto-merge June 30, 2021 08:03
@RaduW RaduW enabled auto-merge (squash) June 30, 2021 08:28
@RaduW RaduW merged commit 9a04609 into master Jun 30, 2021
@RaduW RaduW deleted the ref/remove-project-actor branch June 30, 2021 08:40
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