Skip to content

Commit

Permalink
box
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Dec 3, 2023
1 parent b2bf32f commit 4112216
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/kitsune-activitypub/src/fetcher/object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use scoped_futures::ScopedFutureExt;

// Maximum call depth of fetching new posts. Prevents unbounded recursion.
// Setting this to >=40 would cause the `fetch_infinitely_long_reply_chain` test to run into stack overflow
pub const MAX_FETCH_DEPTH: u32 = 15;
pub const MAX_FETCH_DEPTH: u32 = 20;

impl Fetcher {
#[instrument(skip(self))]
Expand Down
4 changes: 2 additions & 2 deletions crates/kitsune-activitypub/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ extern crate tracing;
use crate::error::{Error, Result};
use diesel::{ExpressionMethods, SelectableHelper};
use diesel_async::{AsyncPgConnection, RunQueryDsl};
use futures_util::{stream, StreamExt, TryStreamExt};
use futures_util::{stream, FutureExt, StreamExt, TryStreamExt};
use http::Uri;
use iso8601_timestamp::Timestamp;
use kitsune_core::traits::{fetcher::PostFetchOptions, Fetcher as FetcherTrait};
Expand Down Expand Up @@ -286,7 +286,7 @@ pub async fn process_new_object(process_data: ProcessNewObject<'_>) -> Result<Po
object,
fetcher,
search_backend,
} = preprocess_object(process_data).await?;
} = preprocess_object(process_data).boxed().await?;

let post = db_pool
.with_transaction(|tx| {
Expand Down

0 comments on commit 4112216

Please sign in to comment.