GH-2546: Fix Super Stream Example in Docs (#2547)

Resolves https://github.com/spring-projects/spring-amqp/issues/2546

Incorrectly added prototype scope to the bean (copy/paste from test).
This commit is contained in:
Gary Russell
2023-10-25 09:48:16 -04:00
parent 923055f25b
commit 7a92b41af8

View File

@@ -295,7 +295,6 @@ Invoke the `superStream` method on the listener container to enable a single act
[source, java]
----
@Bean
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
StreamListenerContainer container(Environment env, String name) {
StreamListenerContainer container = new StreamListenerContainer(env);
container.superStream("ss.sac", "myConsumer", 3); // concurrency = 3