-
Notifications
You must be signed in to change notification settings - Fork 370
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
Make GetConnection filter by synapse label when only target attribute is given #1093
Conversation
@apdavison Could you review this as it should fix your #1085? |
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.
Thanks @stinebuu for fixing this quickly. I've added a question/comment inline.
or connections->get_syn_label( source_lcids[ i ] ) | ||
== synapse_label ) | ||
{ | ||
conns_in_thread.push_back( ConnectionDatum( ConnectionID( |
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.
why don't we use ConnectorBase::get_connection
here? this would also take care of filtering by label and would make this if branch consistent with the others. in addition we wouldn't need to introduce the helper functions below. is speed an issue here?
This PR fixes #1085.
I have added a check for synapse label in
ConnectionManager::get_connections
for the case whenGetConnection
is called with only thetarget
attribute.