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

feat: better tips for "migrate" subcomamnd #2854

Merged
merged 1 commit into from
Jul 23, 2021

Conversation

chaoticlonghair
Copy link
Contributor

@chaoticlonghair chaoticlonghair commented Jul 21, 2021

No description provided.

util/launcher/src/shared_builder.rs Outdated Show resolved Hide resolved
@chaoticlonghair chaoticlonghair added the s:hold Status: Put this issue on hold. label Jul 21, 2021
@chaoticlonghair chaoticlonghair removed the s:hold Status: Put this issue on hold. label Jul 22, 2021
@chaoticlonghair chaoticlonghair requested a review from doitian July 22, 2021 10:25
@chaoticlonghair chaoticlonghair added the s:waiting-on-reviewers Status: Waiting for Review label Jul 23, 2021
@chaoticlonghair chaoticlonghair removed the s:waiting-on-reviewers Status: Waiting for Review label Jul 23, 2021
@chaoticlonghair
Copy link
Contributor Author

bors merge=driftluo,doitian

bors bot added a commit that referenced this pull request Jul 23, 2021
2854: feat: better tips for "migrate" subcomamnd r=driftluo,doitian a=yangby-cryptape



2864: chore(deps): upgrade several dependencies to remove tokio less than v1.0 r=quake,driftluo a=yangby-cryptape

### Purpose

Remove almost all tokio whose version is less than v1.0.

#### To Be Continued

This PR still left one dependency which is depended on tokio v0.2, because that upgrade will change a lot of code, I prefer to put that in another PR later.

### Changes

- Bump jsonrpc-* from 0.17.1 to 0.18.0.

- Bump reqwest from 0.10.9 to 0.11.4.

- Bump hyper from 0.13 to 0.14.

- Bump hyper-tls from 0.4 to 0.5.

- Bump trust-dns-resolver from 0.19 to 0.20.

- Bump ckb-sentry 0.21.0 to sentry 0.23.0.

  - We fork sentry for [RUSTSEC-2020-0041](https://rustsec.org/advisories/RUSTSEC-2020-0041.html), now that issue was fixed.

- Use `std::sync::mpsc::sync_channel(1)` instead of `tokio::sync::oneshot::channel()` in `tx_pool`.

  - To fix error "Cannot start a runtime from within a runtime." after upgrading RPC server's tokio.

    - JSON RPC server doesn't allow to use customize tokio executor.

      Even there are APIs: [`pub fn event_loop_executor(self, executor: tokio::Handle) -> Self;`](https://docs.rs/jsonrpc-http-server/18.0.0/jsonrpc_http_server/struct.ServerBuilder.html#method.event_loop_executor)

  - Use `block_in_place(|| response.recv())` instead of `self.handle.block_on(response)`.

    Without `block_in_place`, RPC service will be blocked very frequently.

Co-authored-by: Boyu Yang <[email protected]>
@bors
Copy link
Contributor

bors bot commented Jul 23, 2021

Build failed (retrying...):

@bors
Copy link
Contributor

bors bot commented Jul 23, 2021

Build succeeded:

@bors bors bot merged commit ef1be13 into nervosnetwork:develop Jul 23, 2021
@chaoticlonghair chaoticlonghair deleted the pr/better-tips branch July 23, 2021 14:08
@doitian doitian mentioned this pull request Aug 10, 2021
3 tasks
@doitian doitian mentioned this pull request Sep 3, 2021
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.

4 participants