Skip to content

Conversation

@tomusdrw
Copy link
Contributor

Closes #586

//! .start(&"127.0.0.1:3030".parse().unwrap())
//! .expect("Unable to start TCP server");
//!
//! // server.wait();
Copy link
Contributor

Choose a reason for hiding this comment

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

"uncommented" because the example wouldn't terminate otherwise?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, is there some other way to prevent that? I guess we could mark it as "no-run"?

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess we could either mark it no_run or hide the "uncommented" line from the docs by # // server.wait();

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  1. no_run feels inferior, since it won't detect the runtime errors
  2. I think hidden lines are still being executed (they are just not displayed in the example)

I can remove the comment completely, but I think it's easier if we make users aware they have to wait for the server. Can add an explanation comment.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can add an explanation comment.

Yes please. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added.

@niklasad1
Copy link
Contributor

//cc @dvdplm @maciejhirsz

need 1 more review :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Derive pubsub example in docs is not working

4 participants