diff options
| author | shikokuchuo <53399081+shikokuchuo@users.noreply.github.com> | 2025-03-15 18:35:10 +0000 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-03-16 18:05:55 -0700 |
| commit | 5b886b57e79992f1d184ca0309757b01e320c552 (patch) | |
| tree | 8f3ec25e12801277a6ad10d589a37e0a97f50c44 /src/sp/protocol | |
| parent | 4783afb5e4c4f21f474776949c61fa9d7b8d26ab (diff) | |
| download | nng-5b886b57e79992f1d184ca0309757b01e320c552.tar.gz nng-5b886b57e79992f1d184ca0309757b01e320c552.tar.bz2 nng-5b886b57e79992f1d184ca0309757b01e320c552.zip | |
fix source formatting
Diffstat (limited to 'src/sp/protocol')
| -rw-r--r-- | src/sp/protocol/reqrep0/req.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/sp/protocol/reqrep0/req.c b/src/sp/protocol/reqrep0/req.c index 468ece15..6ddf958a 100644 --- a/src/sp/protocol/reqrep0/req.c +++ b/src/sp/protocol/reqrep0/req.c @@ -359,10 +359,10 @@ req0_recv_cb(void *arg) nni_id_remove(&s->requests, id); ctx->request_id = 0; if (ctx->req_msg != NULL) { - // Only free msg if we originally cloned it (for retries) - if (ctx->retry > 0) { - nni_msg_free(ctx->req_msg); - } + // Only free msg if we originally cloned it (for retries) + if (ctx->retry > 0) { + nni_msg_free(ctx->req_msg); + } ctx->req_msg = NULL; } @@ -538,7 +538,7 @@ req0_run_send_queue(req0_sock *s, nni_aio_completions *sent_list) // unique. We can freely clone it. // But only do so if we need to hang onto it (for potential retries) if (ctx->retry > 0) { - nni_msg_clone(ctx->req_msg); + nni_msg_clone(ctx->req_msg); } nni_aio_set_msg(&p->aio_send, ctx->req_msg); nni_pipe_send(p->pipe, &p->aio_send); @@ -559,10 +559,10 @@ req0_ctx_reset(req0_ctx *ctx) ctx->request_id = 0; } if (ctx->req_msg != NULL) { - // Only free msg if we originally cloned it (for retries) - if (ctx->retry > 0) { - nni_msg_free(ctx->req_msg); - } + // Only free msg if we originally cloned it (for retries) + if (ctx->retry > 0) { + nni_msg_free(ctx->req_msg); + } ctx->req_msg = NULL; } if (ctx->rep_msg != NULL) { |
