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

Early msgs queue for Public worker #596

Merged
merged 31 commits into from
Sep 26, 2019
Merged

Early msgs queue for Public worker #596

merged 31 commits into from
Sep 26, 2019

Conversation

serzhiio
Copy link
Contributor

@serzhiio serzhiio commented Aug 16, 2019

Fixes: #637

@therustmonk
Copy link
Member

Yeah! Looks great now! 👍
Thank you!
Related PR: #595

* Fix typo

* Require fmt in travis script

* Apply cargo format to all modules
# Conflicts:
#	src/agent.rs
#	src/app.rs
* Fix typo

* Require fmt in travis script

* Apply cargo format to all modules

* avoid allocating in diff_classes

* avoid allocating for diff_kind

* avoid allocating for diff_value

* simplify diff_attributes and avoid allocations

* return iterator for diff_classes and diff_attributes

* rustfmt on vtags

* clean apply_diff

* more cleaning

* apply suggestions

* Update proc-macro2, syn and quote to 1.0

CLOSES #590

* Fixed typo

* Add support for optional callbacks to component properties

* Add tests for a component with optional callback

* Fix typo

* Add `Classes` to prelude
@serzhiio
Copy link
Contributor Author

any chance to merge?

* Fix typo

* Require fmt in travis script

* Apply cargo format to all modules

* avoid allocating in diff_classes

* avoid allocating for diff_kind

* avoid allocating for diff_value

* simplify diff_attributes and avoid allocations

* return iterator for diff_classes and diff_attributes

* rustfmt on vtags

* clean apply_diff

* more cleaning

* apply suggestions

* Update proc-macro2, syn and quote to 1.0

CLOSES #590

* Fixed typo

* Add support for optional callbacks to component properties

* Add tests for a component with optional callback

* Fix typo

* Add `Classes` to prelude
* in yewstack org

* Initial implementation using an iterator adaptor to provide a coherent struct to implement Into<VNode> (via From<>) for

* update large table example to demonstrate new .html() method instead of 'for'

* ran cargo fmt

* Add a section for project templates to the README

* Change org to YewStack

* Implement FromIterator instead of wrapping iterator

* remove dead code

* ran fmt

* Add extend method to Classes

* change to union

* renamed union back to extend

* removed unused import of RangeFull
@hgzimmerman
Copy link
Member

Can you run cargo fmt?

It seems like the CI is failing on The command "cargo fmt --all -- --check" exited with 1.

Copy link
Member

@jstarry jstarry left a comment

Choose a reason for hiding this comment

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

Hey @serzhiio I took a look too and have some suggestions! Thanks for working on this, super pumped to get this merged 😄

Cargo.toml Outdated Show resolved Hide resolved
src/agent.rs Outdated Show resolved Hide resolved
src/agent.rs Outdated Show resolved Hide resolved
src/agent.rs Outdated Show resolved Hide resolved
src/agent.rs Show resolved Hide resolved
src/agent.rs Outdated Show resolved Hide resolved
src/format/bincode.rs Outdated Show resolved Hide resolved
Copy link
Contributor Author

@serzhiio serzhiio left a comment

Choose a reason for hiding this comment

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

In case of workers Id there is a real problem! What if same remote agent created dynamically, what id would it have?

src/agent.rs Show resolved Hide resolved
src/format/bincode.rs Outdated Show resolved Hide resolved
@jstarry jstarry mentioned this pull request Sep 25, 2019
@jstarry
Copy link
Member

jstarry commented Sep 25, 2019

In case of workers Id there is a real problem! What if same remote agent created dynamically, what id would it have?

If the same remote agent is created, then the REMOTE_AGENTS_POOL will have an Entry::Occupied and so a new will not be created. There will be 2 bridges, and both can send to the msg queue.

@serzhiio
Copy link
Contributor Author

serzhiio commented Sep 25, 2019 via email

@jstarry
Copy link
Member

jstarry commented Sep 25, 2019

@serzhiio you can push a new commit to your master branch :)

@jstarry jstarry added the feature-request A feature request label Sep 25, 2019
@jstarry
Copy link
Member

jstarry commented Sep 25, 2019

@serzhiio I can help you on gitter chat

src/agent.rs Outdated Show resolved Hide resolved
src/agent.rs Outdated Show resolved Hide resolved
@serzhiio
Copy link
Contributor Author

serzhiio commented Sep 25, 2019 via email

@serzhiio
Copy link
Contributor Author

serzhiio commented Sep 25, 2019 via email

Copy link
Member

@jstarry jstarry left a comment

Choose a reason for hiding this comment

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

Great work @serzhiio, very happy to have this change merge 👍

@jstarry
Copy link
Member

jstarry commented Sep 26, 2019

bors r+

bors bot added a commit that referenced this pull request Sep 26, 2019
596: Early msgs queue for Public worker r=jstarry a=serzhiio

Fixes: #637

Co-authored-by: serzhiio <sergey.matytsin@gmail.com>
Co-authored-by: Justin Starry <justin.starry@icloud.com>
Co-authored-by: Henry Zimmerman <hgzimmerman@users.noreply.github.com>
Co-authored-by: Terry Raimondo <terry.raimondo@gmail.com>
Co-authored-by: Justin Starry <jstarry@users.noreply.github.com>
@bors
Copy link
Contributor

bors bot commented Sep 26, 2019

Canceled

@jstarry jstarry merged commit dfc4968 into yewstack:master Sep 26, 2019
llebout pushed a commit to llebout/yew that referenced this pull request Jan 20, 2020
* Early msgs queue for Public worker

* Early msgs queue for Public worker

* update (#1)

* Fix typo

* Require fmt in travis script

* Apply cargo format to all modules

* ??

* Merge (yewstack#2)

* Fix typo

* Require fmt in travis script

* Apply cargo format to all modules

* avoid allocating in diff_classes

* avoid allocating for diff_kind

* avoid allocating for diff_value

* simplify diff_attributes and avoid allocations

* return iterator for diff_classes and diff_attributes

* rustfmt on vtags

* clean apply_diff

* more cleaning

* apply suggestions

* Update proc-macro2, syn and quote to 1.0

CLOSES yewstack#590

* Fixed typo

* Add support for optional callbacks to component properties

* Add tests for a component with optional callback

* Fix typo

* Add `Classes` to prelude

* binary ser/de issue fix

* merge (yewstack#3)

* Fix typo

* Require fmt in travis script

* Apply cargo format to all modules

* avoid allocating in diff_classes

* avoid allocating for diff_kind

* avoid allocating for diff_value

* simplify diff_attributes and avoid allocations

* return iterator for diff_classes and diff_attributes

* rustfmt on vtags

* clean apply_diff

* more cleaning

* apply suggestions

* Update proc-macro2, syn and quote to 1.0

CLOSES yewstack#590

* Fixed typo

* Add support for optional callbacks to component properties

* Add tests for a component with optional callback

* Fix typo

* Add `Classes` to prelude

* added bincode type for data ser de

* fixed Into func

* Update (yewstack#5)

* in yewstack org

* Initial implementation using an iterator adaptor to provide a coherent struct to implement Into<VNode> (via From<>) for

* update large table example to demonstrate new .html() method instead of 'for'

* ran cargo fmt

* Add a section for project templates to the README

* Change org to YewStack

* Implement FromIterator instead of wrapping iterator

* remove dead code

* ran fmt

* Add extend method to Classes

* change to union

* renamed union back to extend

* removed unused import of RangeFull

* update

* Fix touch events (yewstack#656)

* Update changelog for v0.9 release (yewstack#657)

* Implement Debug for ChildRenderer<T> (yewstack#655)

* Implement Debug for ChildRenderer<T>

* fix formatter type lifetime

* remove fmt

* cargo fmt

* Emit initial route to router subscribers (yewstack#634)

* Fix typo in RenderService (yewstack#658)

* Add From<&String> for Classes implementation

* @jstarry feedback

- cargo fmt
- rename DEDICATED_WORKERS_* to REMOTE_AGENTS_*
- remove unrelated changes

* TypeId ask key instead &str

* Remove .gitignore changes

* Update agent.rs

* Update agent.rs

* Fix merge conflict
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't send requests to a public agent just after creation
5 participants