From 9a20a18d05c02a4060d47abe2233f9f5f87d9330 Mon Sep 17 00:00:00 2001 From: Marcin Sobczak Date: Thu, 9 Jan 2025 10:44:24 +0100 Subject: [PATCH] add timeout --- .../P2P/Utils/BackgroundTaskSchedulerWrapper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Nethermind/Nethermind.Network/P2P/Utils/BackgroundTaskSchedulerWrapper.cs b/src/Nethermind/Nethermind.Network/P2P/Utils/BackgroundTaskSchedulerWrapper.cs index 733c2155882..f2c9e37258e 100644 --- a/src/Nethermind/Nethermind.Network/P2P/Utils/BackgroundTaskSchedulerWrapper.cs +++ b/src/Nethermind/Nethermind.Network/P2P/Utils/BackgroundTaskSchedulerWrapper.cs @@ -31,7 +31,7 @@ internal void ScheduleSyncServe(TReq request, Func(TReq request, Func fulfillFunc) { - backgroundTaskScheduler.ScheduleTask((request, fulfillFunc), BackgroundTaskFailureHandlerValueTask); + backgroundTaskScheduler.ScheduleTask((request, fulfillFunc), BackgroundTaskFailureHandlerValueTask, Synchronization.Timeouts.Eth); } // I just don't want to create a closure.. so this happens.