Cosmetic
This commit is contained in:
parent
99ab1d60aa
commit
c4999306e1
4
relay.c
4
relay.c
|
@ -127,7 +127,9 @@ static void relay_main(struct relay_node *r) {
|
||||||
sexp_t *args = sexp_tail(message);
|
sexp_t *args = sexp_tail(message);
|
||||||
size_t msglen = sexp_length(message);
|
size_t msglen = sexp_length(message);
|
||||||
|
|
||||||
/* TODO: have constant atoms for post, subscribe, unsubscribe etc (see also post_node()) */
|
/* TODO: have constant atoms for post, subscribe, unsubscribe
|
||||||
|
etc (see also post_node() and the handler in queue.c etc) */
|
||||||
|
|
||||||
if (!cmsg_bytes_cmp(selector, cmsg_cstring_bytes("post")) && (msglen == 4)
|
if (!cmsg_bytes_cmp(selector, cmsg_cstring_bytes("post")) && (msglen == 4)
|
||||||
&& sexp_stringp(sexp_head(args))) {
|
&& sexp_stringp(sexp_head(args))) {
|
||||||
cmsg_bytes_t nodename = sexp_data(sexp_head(args));
|
cmsg_bytes_t nodename = sexp_data(sexp_head(args));
|
||||||
|
|
Loading…
Reference in New Issue