Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

refactor and document wrangler dev #1220

Merged
merged 1 commit into from
Apr 23, 2020
Merged

Conversation

EverlastingBugstopper
Copy link
Contributor

This PR shouldn't change any behavior but it does add a decent chunk of comments, remove dependence on the futures crate, and paves the way for easily adding edge connectivity.

src/commands/dev/gcs/mod.rs Show resolved Hide resolved
src/commands/dev/gcs/setup.rs Show resolved Hide resolved
src/commands/dev/socket.rs Show resolved Hide resolved
src/commands/dev/socket.rs Show resolved Hide resolved
src/commands/dev/socket.rs Show resolved Hide resolved
src/commands/dev/gcs/headers.rs Show resolved Hide resolved
src/commands/dev/gcs/headers.rs Show resolved Hide resolved
src/commands/dev/gcs/headers.rs Show resolved Hide resolved
let client = client.to_owned();
let server_config = server_config.to_owned();
let preview_id = preview_id.to_owned();
async move {
Copy link
Contributor

Choose a reason for hiding this comment

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

mebbe not here, but i'd suggest pulling these nested anonymous functions into named functions for clarity. not 100% necessary tho.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I actually spent like an hour trying to figure out how to do this but couldn't because of the move statements. Happy for some help on this one

src/commands/dev/gcs/server.rs Show resolved Hide resolved
src/commands/dev/gcs/setup.rs Show resolved Hide resolved
src/commands/dev/gcs/watch.rs Show resolved Hide resolved
src/commands/dev/mod.rs Show resolved Hide resolved
src/commands/dev/socket.rs Show resolved Hide resolved
src/commands/dev/socket.rs Show resolved Hide resolved
/// and any response headers sent from the preview service
/// that don't have the prefix must be removed
/// and response headers that do have the prefix
/// must have the prefix stripped
Copy link
Contributor

Choose a reason for hiding this comment

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

v. nice

src/commands/dev/socket.rs Show resolved Hide resolved
@EverlastingBugstopper EverlastingBugstopper merged commit e8b9434 into master Apr 23, 2020
@delete-merged-branch delete-merged-branch bot deleted the avery/cleanup branch April 23, 2020 19:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants