Updates the mention to MessageRoutingCallback to the correct method version

This commit is contained in:
Victor Hugo Pongolino
2024-06-27 17:20:38 -03:00
committed by GitHub
parent 23a69512df
commit 27ca5c37fc

View File

@@ -196,8 +196,8 @@ The `MessageRoutingCallback` is a strategy to assist with determining the name o
----
public interface MessageRoutingCallback {
default String routingResult(Message<?> message) {
return (String) message.getHeaders().get("spring.cloud.function.definition");
}
return (String) message.getHeaders().get(FunctionProperties.FUNCTION_DEFINITION);
}
}
----