From 64dc6c577159d1d00a0d5e19ad4d7ea8299cf855 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Mon, 18 Dec 2017 20:03:42 -0800 Subject: [PATCH] fix typos --- examples/diesel/src/main.rs | 2 +- guide/src/qs_14.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/diesel/src/main.rs b/examples/diesel/src/main.rs index 9e03873cd..15f0cc1bf 100644 --- a/examples/diesel/src/main.rs +++ b/examples/diesel/src/main.rs @@ -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] diff --git a/guide/src/qs_14.md b/guide/src/qs_14.md index e92375c43..2716bf854 100644 --- a/guide/src/qs_14.md +++ b/guide/src/qs_14.md @@ -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