Skip to content

Commit 7b0c98d

Browse files
lint
1 parent 0e350e3 commit 7b0c98d

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

source/s3_default_buffer_pool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ void s_default_pool_trim(struct aws_s3_buffer_pool *pool) {
189189

190190
static struct aws_s3_buffer_pool_vtable s_default_pool_vtable = {
191191
.reserve = s_default_pool_reserve,
192-
.trim = s_default_pool_trim,
192+
.trim = s_default_pool_trim,
193193
};
194194

195195
struct aws_s3_buffer_pool *aws_s3_default_buffer_pool_new(

tests/s3_data_plane_tests.c

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3361,30 +3361,27 @@ struct aws_future_s3_buffer_ticket *s_failing_pool_reserve(
33613361

33623362
static struct aws_s3_buffer_pool_vtable s_failing_pool_vtable = {
33633363
.reserve = s_failing_pool_reserve,
3364-
.trim = NULL,
3364+
.trim = NULL,
33653365
};
33663366

3367-
struct aws_s3_buffer_pool *s_always_error_buffer_pool_fn(struct aws_allocator *allocator,
3368-
struct aws_s3_buffer_pool_config config) {
3367+
struct aws_s3_buffer_pool *s_always_error_buffer_pool_fn(
3368+
struct aws_allocator *allocator,
3369+
struct aws_s3_buffer_pool_config config) {
33693370
struct aws_s3_buffer_pool *pool = aws_mem_calloc(allocator, 1, sizeof(struct aws_s3_buffer_pool));
33703371
pool->impl = allocator;
33713372
pool->vtable = &s_failing_pool_vtable;
33723373
aws_ref_count_init(&pool->ref_count, pool, (aws_simple_completion_callback *)aws_s3_default_buffer_pool_destroy);
33733374
}
33743375

3375-
AWS_TEST_CASE(
3376-
test_s3_put_object_buffer_acquire_error,
3377-
s_test_s3_put_object_buffer_acquire_error)
3376+
AWS_TEST_CASE(test_s3_put_object_buffer_acquire_error, s_test_s3_put_object_buffer_acquire_error)
33783377
static int test_s3_put_object_buffer_acquire_error(struct aws_allocator *allocator, void *ctx) {
33793378
(void)ctx;
33803379

33813380
struct aws_s3_tester tester;
33823381
ASSERT_SUCCESS(aws_s3_tester_init(allocator, &tester));
33833382

33843383
struct aws_s3_client_config client_config = {
3385-
.part_size = 8 * 1024 * 1024,
3386-
.buffer_pool_factory_fn = s_always_error_buffer_pool_fn
3387-
};
3384+
.part_size = 8 * 1024 * 1024, .buffer_pool_factory_fn = s_always_error_buffer_pool_fn};
33883385

33893386
ASSERT_SUCCESS(aws_s3_tester_bind_client(
33903387
&tester, &client_config, AWS_S3_TESTER_BIND_CLIENT_REGION | AWS_S3_TESTER_BIND_CLIENT_SIGNING));
@@ -3414,7 +3411,9 @@ static int test_s3_put_object_buffer_acquire_error(struct aws_allocator *allocat
34143411
},
34153412
};
34163413

3417-
ASSERT_INT_EQUALS(AWS_ERROR_S3_BUFFER_ALLOCATION_FAILED, aws_s3_tester_send_meta_request_with_options(&tester, &put_options, NULL));
3414+
ASSERT_INT_EQUALS(
3415+
AWS_ERROR_S3_BUFFER_ALLOCATION_FAILED,
3416+
aws_s3_tester_send_meta_request_with_options(&tester, &put_options, NULL));
34183417
client = aws_s3_client_release(client);
34193418

34203419
aws_byte_buf_clean_up(&path_buf);

0 commit comments

Comments
 (0)