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

Cleanup #79

Merged
merged 9 commits into from
Sep 21, 2023
Merged

Cleanup #79

merged 9 commits into from
Sep 21, 2023

Conversation

GhostofCookie
Copy link
Contributor

Big scary refactor and cleanup (the formatter was run).

Some key notes:

  • Fixed some refs that should have been const&
  • Fixed some refs that should have been shared_ptr
  • Fixed some shared_ptr that should have been using const& or copy-move
  • Fixed some stuttery naming, while using deprecated typealiases for backwards compiling.

Build will probably fail because it relies on Quicr/qname#13 to be merged as well.

cmd/really/really.cpp Outdated Show resolved Hide resolved
cmd/really/really.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@bifurcation bifurcation left a 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);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
quicr::Client client(relay, tcfg, logger);
auto client = quicr::Client{ relay, tcfg, logger };

Copy link
Contributor Author

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?

include/quicr/message_buffer.h Outdated Show resolved Hide resolved
include/quicr/message_buffer.h Show resolved Hide resolved
include/quicr/message_buffer.h Show resolved Hide resolved
include/quicr/message_types.h Show resolved Hide resolved
src/CMakeLists.txt Show resolved Hide resolved
Comment on lines +94 to +95
const std::string& origin_url,
const std::string& auth_token)
Copy link
Contributor

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.

Copy link
Contributor Author

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.

src/quicr_client_raw_session.cpp Show resolved Hide resolved
{
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
Copy link
Contributor

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.

Copy link
Contributor Author

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.

src/quicr_server_raw_session.cpp Show resolved Hide resolved
@GhostofCookie GhostofCookie merged commit 7f36106 into main Sep 21, 2023
2 checks passed
@GhostofCookie GhostofCookie deleted the cleanup branch September 21, 2023 21:58
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.

3 participants