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

feat(builtins)!: add worker.list, move spell.list to worker scope [fixes NET-401 NET-435] #1537

Merged
merged 10 commits into from
Mar 30, 2023

Conversation

justprosh
Copy link
Member

No description provided.

@justprosh justprosh changed the title feat(builtins): add worker.list, move spell.list to worker scope feat(builtins): add worker.list, move spell.list to worker scope [NET-401 NET-435] Mar 28, 2023
@linear
Copy link

linear bot commented Mar 28, 2023

@justprosh justprosh marked this pull request as ready for review March 28, 2023 12:33
@justprosh justprosh requested review from folex and kmd-fl March 28, 2023 12:33
spell-storage/src/storage.rs Outdated Show resolved Hide resolved
@@ -80,7 +80,12 @@ impl Sorcerer {
}

async fn resubscribe_spells(&self) {
for (spell_id, _) in self.spell_storage.get_registered_spells() {
for spell_id in self
Copy link
Member

Choose a reason for hiding this comment

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

is it possible that a single spell exists on several workers?

Copy link
Member

Choose a reason for hiding this comment

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

if not, please add a comment on why. It's not clear how you guarantee that.

Copy link
Member Author

Choose a reason for hiding this comment

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

it is guaranteed by service structure, it has only one field worker_id and it is the only source of truth about worker_id

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't know where to put this comment

@folex folex changed the title feat(builtins): add worker.list, move spell.list to worker scope [NET-401 NET-435] feat(builtins)!: add worker.list, move spell.list to worker scope [NET-401 NET-435] Mar 29, 2023
@justprosh justprosh requested a review from folex March 29, 2023 14:19
@folex folex changed the title feat(builtins)!: add worker.list, move spell.list to worker scope [NET-401 NET-435] feat(builtins)!: add worker.list, move spell.list to worker scope [fixes NET-401 NET-435] Mar 29, 2023
@justprosh justprosh enabled auto-merge (squash) March 30, 2023 09:27
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.

None yet

3 participants