From 96e3f3491def586eccdb583a2ca9f75acd727b35 Mon Sep 17 00:00:00 2001 From: Ian Streeter Date: Thu, 9 Jan 2025 10:26:30 +0000 Subject: [PATCH] Remove prefetch from pubsub source --- .../snowplowanalytics/snowplow/sources/pubsub/PubsubSource.scala | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/pubsub/src/main/scala/com/snowplowanalytics/snowplow/sources/pubsub/PubsubSource.scala b/modules/pubsub/src/main/scala/com/snowplowanalytics/snowplow/sources/pubsub/PubsubSource.scala index 5d2101b..59e2b6c 100644 --- a/modules/pubsub/src/main/scala/com/snowplowanalytics/snowplow/sources/pubsub/PubsubSource.scala +++ b/modules/pubsub/src/main/scala/com/snowplowanalytics/snowplow/sources/pubsub/PubsubSource.scala @@ -78,7 +78,6 @@ object PubsubSource { } yield Stream .fixedRateStartImmediately(config.debounceRequests, dampen = true) .parEvalMapUnordered(parallelPullCount)(_ => pullAndManageState(config, stub, refStates)) - .prefetchN(parallelPullCount) .concurrently(extendDeadlines(config, stub, refStates)) .onFinalize(nackRefStatesForShutdown(config, stub, refStates))