mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-26 13:31:02 +00:00
Comment on database connections
This commit is contained in:
parent
e7ab80d5c8
commit
c82c38fe52
1 changed files with 2 additions and 0 deletions
|
@ -43,6 +43,8 @@ impl Actor for RemoteFetchActor {
|
|||
RemoteUserFound(user) => match self.conn.get() {
|
||||
Ok(conn) => {
|
||||
let conn = DbConn(conn);
|
||||
// Don't call these functions in parallel
|
||||
// for the case database connections limit is too small
|
||||
fetch_and_cache_articles(&user, &conn);
|
||||
fetch_and_cache_followers(&user, &conn);
|
||||
if user.needs_update() {
|
||||
|
|
Loading…
Reference in a new issue