mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 12:56:30 +03:00
Apply suggestions from code review
Co-authored-by: link2xt <link2xt@testrun.org> Co-authored-by: iequidoo <117991069+iequidoo@users.noreply.github.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# Delta Chat REPL
|
# Delta Chat REPL
|
||||||
|
|
||||||
This is a simple [REPL](https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop) frontend built on top of Delta Chat core.
|
This is a [REPL](https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop) frontend built on top of Delta Chat core.
|
||||||
Its purpose is to help with quick testing during development, it is not meant for end users.
|
Its purpose is to help with testing during development, it is not meant for end users.
|
||||||
|
|
||||||
Dependencies:
|
Dependencies:
|
||||||
- if you want to use `getqr` you need `qrencode` (To install use your systems package manager)
|
- if you want to use `getqr` you need `qrencode` (To install use your systems package manager)
|
||||||
@@ -12,7 +12,7 @@ Dependencies:
|
|||||||
cargo run <path to deltachat db>
|
cargo run <path to deltachat db>
|
||||||
```
|
```
|
||||||
|
|
||||||
Type in `help` to learn about what comands are available.
|
Type in `help` to learn about what commands are available.
|
||||||
|
|
||||||
## Usage with `tokio-console`
|
## Usage with `tokio-console`
|
||||||
|
|
||||||
@@ -30,9 +30,9 @@ RUSTFLAGS="--cfg tokio_unstable" cargo run <path to deltachat db>
|
|||||||
```
|
```
|
||||||
|
|
||||||
Then in a new console window start [`tokio-console`](https://github.com/tokio-rs/console).
|
Then in a new console window start [`tokio-console`](https://github.com/tokio-rs/console).
|
||||||
You can install it via `cargo install tokio-console`.
|
You can install it via `cargo install --locked tokio-console`.
|
||||||
|
|
||||||
### Quick Example
|
### Example
|
||||||
|
|
||||||
An example session in the REPL tool:
|
An example session in the REPL tool:
|
||||||
|
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ pub(crate) async fn set_debug_logging_xdc(ctx: &Context, id: Option<MsgId>) -> a
|
|||||||
let (sender, debug_logging_recv) = channel::bounded(1000);
|
let (sender, debug_logging_recv) = channel::bounded(1000);
|
||||||
let loop_handle = {
|
let loop_handle = {
|
||||||
let ctx = ctx.clone();
|
let ctx = ctx.clone();
|
||||||
spawn_named_task!("debug_logging_loop", async move {
|
spawn_named_task!("xdc_debug_logging_loop", async move {
|
||||||
debug_logging_loop(&ctx, debug_logging_recv).await
|
debug_logging_loop(&ctx, debug_logging_recv).await
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user