-
Notifications
You must be signed in to change notification settings - Fork 197
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
Add multiparty status API #1509
Conversation
Signed-off-by: Chris Bygrave <[email protected]>
9893ea7
to
9781943
Compare
Signed-off-by: Chris Bygrave <[email protected]>
Signed-off-by: Chris Bygrave <[email protected]>
fd0e3a7
to
cafe959
Compare
Signed-off-by: Chris Bygrave <[email protected]>
e362c16
to
1a71db6
Compare
- derived from catchup Signed-off-by: Chris Bygrave <[email protected]>
Signed-off-by: Chris Bygrave <[email protected]>
} | ||
|
||
// Ensure the given registration message correlates with the expected type | ||
func (or *orchestrator) checkRegistrationType(ctx context.Context, msg *core.MessageInOut, expectedType core.IdentityType) (match bool, err error) { |
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.
Was this check in response to a specific error scenario we've seen? I'm trying to think why there would be a pending registration message, but the contents would be inconsistent.
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.
No, it was purely theoretical - it felt clumsy before I added this that we would find a registration message and just assume it was of the correct type. It's technically possible that a pending node registration message could be there without the org being registered, and the API would then return the wrong response.
I admit it could be overkill...
- also added a missing test around retrieving active listener status Signed-off-by: Chris Bygrave <[email protected]>
Signed-off-by: Chris Bygrave <[email protected]>
Signed-off-by: Chris Bygrave <[email protected]>
Signed-off-by: Chris Bygrave <[email protected]>
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.
LGTM and merging! Thanks @chrisbygrave
No description provided.