Skip to content

Commit

Permalink
make format
Browse files Browse the repository at this point in the history
  • Loading branch information
bschatt committed May 17, 2021
1 parent 40a0233 commit abec9de
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/sentry_session.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ sentry__session_from_json(const char *buf, size_t buflen)
sentry_value_get_by_key(value, "errors"));
rv->started_ms = sentry__iso8601_to_msec(
sentry_value_as_string(sentry_value_get_by_key(value, "started")));
rv->duration_ms = (uint64_t)(
sentry_value_as_double(sentry_value_get_by_key(value, "duration"))
rv->duration_ms = (uint64_t)(sentry_value_as_double(
sentry_value_get_by_key(value, "duration"))
* 1000);

sentry_value_decref(value);
Expand Down
3 changes: 2 additions & 1 deletion src/transports/sentry_disk_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ send_envelope_disk_transport(sentry_envelope_t *envelope, void *state)
sentry_transport_t *
sentry_new_disk_transport(const sentry_run_t *run)
{
sentry_transport_t *transport = sentry_transport_new(send_envelope_disk_transport);
sentry_transport_t *transport
= sentry_transport_new(send_envelope_disk_transport);
if (!transport) {
return NULL;
}
Expand Down
3 changes: 2 additions & 1 deletion src/transports/sentry_function_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ sentry_new_function_transport(
state->func = func;
state->data = data;

sentry_transport_t *transport = sentry_transport_new(send_envelope_function_transport);
sentry_transport_t *transport
= sentry_transport_new(send_envelope_function_transport);
if (!transport) {
sentry_free(state);
return NULL;
Expand Down
5 changes: 3 additions & 2 deletions tests/unit/test_attachments.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ SENTRY_TEST(lazy_attachments)
sentry_options_t *options = sentry_options_new();
sentry_options_set_auto_session_tracking(options, false);
sentry_options_set_dsn(options, "https://[email protected]/42");
sentry_options_set_transport(
options, sentry_new_function_transport(send_envelope_test_attachments, &testdata));
sentry_options_set_transport(options,
sentry_new_function_transport(
send_envelope_test_attachments, &testdata));
sentry_options_set_release(options, "prod");

sentry_options_add_attachment(options, PREFIX ".existing-file-attachment");
Expand Down
7 changes: 4 additions & 3 deletions tests/unit/test_basic.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ SENTRY_TEST(basic_function_transport)

sentry_options_t *options = sentry_options_new();
sentry_options_set_dsn(options, "https://[email protected]/42");
sentry_options_set_transport(
options, sentry_new_function_transport(send_envelope_test_basic, &called));
sentry_options_set_transport(options,
sentry_new_function_transport(send_envelope_test_basic, &called));
sentry_options_set_release(options, "prod");
sentry_options_set_require_user_consent(options, true);
sentry_init(options);
Expand Down Expand Up @@ -80,7 +80,8 @@ SENTRY_TEST(sampling_before_send)
sentry_options_t *options = sentry_options_new();
sentry_options_set_dsn(options, "https://[email protected]/42");
sentry_options_set_transport(options,
sentry_new_function_transport(send_envelope_test_basic, &called_transport));
sentry_new_function_transport(
send_envelope_test_basic, &called_transport));
sentry_options_set_before_send(options, before_send, &called_beforesend);
sentry_options_set_sample_rate(options, 0.75);
sentry_init(options);
Expand Down

0 comments on commit abec9de

Please sign in to comment.