message: Made the postgres pool size configurable
diff: @@ -28,13 +28,19 @@ pub fn connect_db() -> Result<Connection, failure::Error> {
  pub(crate) fn create_pool() -> r2d2::Pool<r2d2_postgres::PostgresConnectionManager> {
  let db_url = env::var("CRATESFYI_DATABASE_URL")
  .expect("CRATESFYI_DATABASE_URL environment variable is not exists");
  + let pool_size = env::var("DOCSRS_POOL_SIZE")
  + .map(|s| {
  + s.parse::<u32>()
  + .expect("DOCSRS_POOL_SIZE must be an integer")
  + })
  + .unwrap_or(90);
  let manager =
  r2d2_postgres::PostgresConnectionManager::new(&db_url[..], r2d2_postgres::TlsMode::None)
  .expect("Failed to create PostgresConnectionManager");
  r2d2::Pool::builder()
  - .max_size(90)
  + .max_size(pool_size)
  .build(manager)
  .expect("Failed to create r2d2 pool")
  }
  