Fixes typo FunctionRoutingResult to String

This commit is contained in:
Victor Hugo Pongolino
2024-06-27 16:45:15 -03:00
committed by GitHub
parent a1918be5ff
commit bdd0c417ac

View File

@@ -195,8 +195,9 @@ The `MessageRoutingCallback` is a strategy to assist with determining the name o
[source, java]
----
public interface MessageRoutingCallback {
FunctionRoutingResult routingResult(Message<?> message);
. . .
default String routingResult(Message<?> message) {
return (String) message.getHeaders().get("spring.cloud.function.definition");
}
}
----
@@ -739,4 +740,4 @@ private final static JsonMasker masker = JsonMasker.INSTANCE();
. . .
logger.info("Received: " + masker.mask(new String(payload, StandardCharsets.UTF_8)));
----
----