increase backpressure buffer for subscription syncs

This commit is contained in:
Termina1
2025-08-29 13:51:26 +03:00
parent 0ec7e4fd70
commit be95b68964

View File

@@ -80,7 +80,7 @@ class SharedLogsProducer(
private fun startSharedStream(matcher: Selector.Matcher) { private fun startSharedStream(matcher: Selector.Matcher) {
val matcherKey = matcher.describeInternal() val matcherKey = matcher.describeInternal()
val logsSink = Sinks.many().multicast().onBackpressureBuffer<LogMessage>() val logsSink = Sinks.many().multicast().onBackpressureBuffer<LogMessage>(4096)
logsSinks[matcherKey] = logsSink logsSinks[matcherKey] = logsSink
val sharedStream = produceLogs.produce(connectBlockUpdates.connect(matcher)) val sharedStream = produceLogs.produce(connectBlockUpdates.connect(matcher))