Skip to content

Commit b5fda56

Browse files
1993heqiangjxblum
authored andcommitted
Format example code in 'Publishing (Sending Messages)' section of ref doc.
Closed #2533
1 parent 8abb768 commit b5fda56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/asciidoc/reference/redis-messaging.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ To publish a message, you can use, as with the other operations, either the low-
2222
// send message through connection RedisConnection con = ...
2323
byte[] msg = ...
2424
byte[] channel = ...
25-
con.publish(msg, channel); // send message through RedisTemplate
25+
con.publish(msg, channel);
26+
27+
// send message through RedisTemplate
2628
RedisTemplate template = ...
2729
Long numberOfClients = template.convertAndSend("hello!", "world");
2830
----

0 commit comments

Comments
 (0)