-
Notifications
You must be signed in to change notification settings - Fork 44
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
swarm - feat: added service registry #923
swarm - feat: added service registry #923
Conversation
…ment in ServiceRegistryBase
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.
small changes requested to rename method. looks good overall. job well done
pass | ||
|
||
@abstractmethod | ||
def deregister_service(self, name: str) -> None: |
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.
let's call it unregister_service()
if details.get("role") in roles | ||
] | ||
|
||
def deregister_service(self, name: str) -> None: |
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.
rename to unregister_service()
@pytest.mark.unit | ||
def test_deregister_service_nonexistent(service_registry): | ||
with pytest.raises(ValueError) as exc_info: | ||
service_registry.deregister_service("nonexistent") |
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.
update name of method and test name here
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.
Well Noted!
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.
one last change here requested here
No description provided.