mirror of
https://github.com/fafhrd91/actix-web
synced 2025-01-18 05:41:50 +01:00
fix typos
This commit is contained in:
parent
669975df75
commit
64dc6c5771
@ -3,7 +3,7 @@
|
|||||||
//! Diesel does not support tokio, so we have to run it in separate threads.
|
//! Diesel does not support tokio, so we have to run it in separate threads.
|
||||||
//! Actix supports sync actors by default, so we going to create sync actor that will
|
//! Actix supports sync actors by default, so we going to create sync actor that will
|
||||||
//! use diesel. Technically sync actors are worker style actors, multiple of them
|
//! use diesel. Technically sync actors are worker style actors, multiple of them
|
||||||
//! can run in parallele and process messages from same queue.
|
//! can run in parallel and process messages from same queue.
|
||||||
extern crate serde;
|
extern crate serde;
|
||||||
extern crate serde_json;
|
extern crate serde_json;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
|
|
||||||
At the moment of 1.0 release Diesel does not support asynchronous operations.
|
At the moment of 1.0 release Diesel does not support asynchronous operations.
|
||||||
But it possible to use `actix` synchronous actor system as a db interface api.
|
But it possible to use `actix` synchronous actor system as a db interface api.
|
||||||
Multiple sync actors could be run in parallel, in this case all of this actors
|
Technically sync actors are worker style actors, multiple of them
|
||||||
process messages from the same queue (sync actors actually work in mpmc mode).
|
can be run in parallel and process messages from same queue (sync actors work in mpmc mode).
|
||||||
|
|
||||||
Let's create simple db api that can insert new user row into sqlite table.
|
Let's create simple db api that can insert new user row into sqlite table.
|
||||||
We need to define sync actor and connection that this actor will use. Same approach
|
We need to define sync actor and connection that this actor will use. Same approach
|
||||||
|
Loading…
x
Reference in New Issue
Block a user