1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-12-16 21:26:34 +00:00

fix typos

This commit is contained in:
Nikolay Kim 2017-12-18 20:03:42 -08:00
parent 669975df75
commit 64dc6c5771
2 changed files with 3 additions and 3 deletions

View file

@ -3,7 +3,7 @@
//! 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
//! 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_json;
#[macro_use]

View file

@ -4,8 +4,8 @@
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.
Multiple sync actors could be run in parallel, in this case all of this actors
process messages from the same queue (sync actors actually work in mpmc mode).
Technically sync actors are worker style actors, multiple of them
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.
We need to define sync actor and connection that this actor will use. Same approach