Skip to content

Commit bdd0c41

Browse files
Fixes typo FunctionRoutingResult to String
1 parent a1918be commit bdd0c41

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/modules/ROOT/pages/spring-cloud-function/programming-model.adoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,9 @@ The `MessageRoutingCallback` is a strategy to assist with determining the name o
195195
[source, java]
196196
----
197197
public interface MessageRoutingCallback {
198-
FunctionRoutingResult routingResult(Message<?> message);
199-
. . .
198+
default String routingResult(Message<?> message) {
199+
return (String) message.getHeaders().get("spring.cloud.function.definition");
200+
}
200201
}
201202
----
202203

@@ -739,4 +740,4 @@ private final static JsonMasker masker = JsonMasker.INSTANCE();
739740
. . .
740741
741742
logger.info("Received: " + masker.mask(new String(payload, StandardCharsets.UTF_8)));
742-
----
743+
----

0 commit comments

Comments
 (0)