Skip to content

Commit

Permalink
trivials
Browse files Browse the repository at this point in the history
  • Loading branch information
TingDaoK committed Dec 4, 2023
1 parent f8a4c36 commit dbf5b2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
6 changes: 1 addition & 5 deletions include/aws/s3/s3_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,7 @@ typedef void(aws_s3_meta_request_progress_fn)(
void *user_data);

/**
* Invoked to report the telemetry of the meta request once a single request finishes. Invoked from the thread of the
* connection that request made from.
* Invoked to report the telemetry of the meta request once a single request finishes.
* Note: *metrics is only valid for the duration of the callback. If you need to keep it around, use
* `aws_s3_request_metrics_acquire`
*/
Expand Down Expand Up @@ -652,9 +651,6 @@ struct aws_s3_meta_request_options {
* If set the request will keep track of the metrics from `aws_s3_request_metrics`, and fire the callback when the
* request finishes receiving response.
* See `aws_s3_meta_request_telemetry_fn`
*
* Notes:
* - The callback will be invoked multiple times from different threads.
*/
aws_s3_meta_request_telemetry_fn *telemetry_callback;

Expand Down
6 changes: 2 additions & 4 deletions source/s3_request.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,12 @@ static void s_s3_request_clean_up_send_data_message(struct aws_s3_request *reque

void aws_s3_request_clean_up_send_data(struct aws_s3_request *request) {
AWS_PRECONDITION(request);
/* The metrics should be collected and provided to user before reaching here */
AWS_FATAL_ASSERT(request->send_data.metrics == NULL);

s_s3_request_clean_up_send_data_message(request);

aws_signable_destroy(request->send_data.signable);

/* The metrics should be collected and provided before reaching here */
AWS_FATAL_ASSERT(request->send_data.metrics == NULL);

request->send_data.signable = NULL;
aws_http_headers_release(request->send_data.response_headers);
request->send_data.response_headers = NULL;
Expand Down

0 comments on commit dbf5b2d

Please sign in to comment.