-
Notifications
You must be signed in to change notification settings - Fork 4
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
Cleanup #79
Cleanup #79
Conversation
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.
Approved with nits fixed.
@@ -127,7 +127,7 @@ main(int argc, char* argv[]) | |||
|
|||
qtransport::TransportConfig tcfg{ .tls_cert_filename = NULL, | |||
.tls_key_filename = NULL }; | |||
quicr::QuicRClient client(relay, tcfg, logger); | |||
quicr::Client client(relay, tcfg, logger); |
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.
quicr::Client client(relay, tcfg, logger); | |
auto client = quicr::Client{ relay, tcfg, logger }; |
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.
Seems like an abuse of auto.... any particular reason for this?
const std::string& origin_url, | ||
const std::string& auth_token) |
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.
Are these parameters really needed to unsubscribe? It's not like you need authorization to leave like you do to join.
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 idea. But I'm avoiding crazy API changes as much as possible for now. Would love to address this in a follow up PR though.
{ | ||
if (!publish_namespaces.count(quicr_namespace)) | ||
return; | ||
|
||
// TODO: Need to update publish_namespaces and intent methods to support multi origin | ||
// TODO: Support more than one publisher per ns |
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.
This actually seems like something we should not support, to avoid sending of duplicate names.
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.
Leaving this unresolved and adding @TimEvens to the conversation.
Big scary refactor and cleanup (the formatter was run).
Some key notes:
Build will probably fail because it relies on Quicr/qname#13 to be merged as well.