Skip to content

Commit 27ca5c3

Browse files
Updates the mention to MessageRoutingCallback to the correct method version
1 parent 23a6951 commit 27ca5c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ The `MessageRoutingCallback` is a strategy to assist with determining the name o
196196
----
197197
public interface MessageRoutingCallback {
198198
default String routingResult(Message<?> message) {
199-
return (String) message.getHeaders().get("spring.cloud.function.definition");
200-
}
199+
return (String) message.getHeaders().get(FunctionProperties.FUNCTION_DEFINITION);
200+
}
201201
}
202202
----
203203

0 commit comments

Comments
 (0)