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

swarm - feat: added service registry #923

Merged

Conversation

MichaelDecent
Copy link
Collaborator

No description provided.

@MichaelDecent
Copy link
Collaborator Author

Issue 192

Copy link
Contributor

@cobycloud cobycloud left a 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:
Copy link
Contributor

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:
Copy link
Contributor

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")
Copy link
Contributor

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Well Noted!

Copy link
Contributor

@cobycloud cobycloud left a 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

@cobycloud cobycloud changed the base branch from mono/dev to mono/dev-newfeatures December 17, 2024 13:52
@cobycloud cobycloud merged commit 42b30ef into swarmauri:mono/dev-newfeatures Dec 17, 2024
1 check passed
@MichaelDecent MichaelDecent deleted the service_registry branch January 16, 2025 11:32
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.

2 participants