Skip to content

Commit 2c78357

Browse files
Fix error in comment for pubsub stream binder sample (spring-attic#2160)
Nit: fix an error in the comment for `inputChannel`.
1 parent 901882a commit 2c78357

File tree

1 file changed

+3
-2
lines changed
  • spring-cloud-gcp-samples/spring-cloud-gcp-pubsub-binder-sample/src/main/java/com/example

1 file changed

+3
-2
lines changed

spring-cloud-gcp-samples/spring-cloud-gcp-pubsub-binder-sample/src/main/java/com/example/SinkExample.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ public void handleMessage(UserMessage userMessage) {
4646
" at " + userMessage.getCreatedAt());
4747
}
4848

49-
// Note that the error inputChannel is formatted as [Pub/Sub subscription name with group].[group name].errors
50-
// If you change the topic name in application.properties, you also have to change the inputChannel below.
49+
// Note that the error `inputChannel` is formatted as [Pub/Sub subscription name].errors
50+
// or the equivalent of [Pub/Sub topic name].[group name].errors. If you change the topic name in
51+
// `application.properties`, you will also have to change the `inputChannel` below.
5152
@ServiceActivator(inputChannel = "my-topic.my-group.errors")
5253
public void error(Message<MessagingException> message) {
5354
LOGGER.error("The message that was sent is now processed by the error handler.");

0 commit comments

Comments
 (0)