Skip to content

Commit

Permalink
PR feedback: removed trailing whitespace in micro*
Browse files Browse the repository at this point in the history
  • Loading branch information
levb committed Nov 5, 2024
1 parent 0a197ab commit 9bc5e7f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/micro-sequence.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
8 changes: 4 additions & 4 deletions src/micro.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/microp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9bc5e7f

Please sign in to comment.