Comment on database connections
This commit is contained in:
parent
e7ab80d5c8
commit
c82c38fe52
@ -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 New Issue
Block a user