From c82c38fe52294a1f55e144f1434cefad2d16e629 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Mon, 1 Feb 2021 01:16:52 +0900 Subject: [PATCH] Comment on database connections --- plume-models/src/remote_fetch_actor.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plume-models/src/remote_fetch_actor.rs b/plume-models/src/remote_fetch_actor.rs index 49163404..36619bfd 100644 --- a/plume-models/src/remote_fetch_actor.rs +++ b/plume-models/src/remote_fetch_actor.rs @@ -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() {