Comment on database connections

This commit is contained in:
Kitaiti Makoto 2021-02-01 01:16:52 +09:00
parent e7ab80d5c8
commit c82c38fe52

View File

@ -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() {