From 9bc5e7ff01ee4365dd7a169ac94cfc15c23d9d7b Mon Sep 17 00:00:00 2001 From: Lev Brouk Date: Tue, 5 Nov 2024 07:40:37 -0800 Subject: [PATCH] PR feedback: removed trailing whitespace in micro* --- examples/micro-sequence.c | 2 +- src/micro.c | 8 ++++---- src/microp.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/micro-sequence.c b/examples/micro-sequence.c index 2e530b2e2..b2688f367 100644 --- a/examples/micro-sequence.c +++ b/examples/micro-sequence.c @@ -139,7 +139,7 @@ static microError *handle_sequence(microRequest *req) result_len = snprintf(result, sizeof(result), "%Lf", value); if (err == NULL) err = microRequest_Respond(req, result, result_len); - + microArgs_Destroy(args); return err; } diff --git a/src/micro.c b/src/micro.c index 7baa06465..94625b609 100644 --- a/src/micro.c +++ b/src/micro.c @@ -301,7 +301,7 @@ _detach_service_from_connection(natsConnection *nc, microService *m) { if (nc->services[i] != m) continue; - + nc->services[i] = nc->services[nc->numServices - 1]; nc->numServices--; break; @@ -372,7 +372,7 @@ _detach_endpoint_from_service(microService *m, microEndpoint *toRemove) ; if (ep == NULL) return; - + m->numEndpoints--; if (prev_ep == NULL) m->first_ep = ep->next; @@ -627,14 +627,14 @@ _on_service_error(microService *m, const char *subject, natsStatus s) if (found == NULL) return false; - + err = microError_Wrapf(micro_ErrorFromStatus(s), "NATS error on endpoint '%s'", subject); micro_update_last_error(found, err); microError_Destroy(err); if (m->cfg->ErrHandler != NULL) (*m->cfg->ErrHandler)(m, found, s); - + micro_release_endpoint(found); return true; } diff --git a/src/microp.h b/src/microp.h index c2262ffa4..63dd77b74 100644 --- a/src/microp.h +++ b/src/microp.h @@ -53,7 +53,7 @@ struct micro_endpoint_s // A copy of the config provided to add_endpoint. microEndpointConfig *config; - + // Retained/released by the service that owns the endpoint to avoid race // conditions. microService *m;