Skip to content

Commit fb7d65a

Browse files
Jake ChampionJakeChampion
authored andcommitted
formatting
1 parent fd6ff94 commit fb7d65a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

runtime/js-compute-runtime/fastly-world/fastly_world_adapter.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,12 @@ bool fastly_http_req_downstream_tls_raw_client_certificate(fastly_world_list_u8_
204204
fastly_error_t *err) {
205205
auto default_size = 4096;
206206
ret->ptr = static_cast<uint8_t *>(cabi_malloc(default_size, 4));
207-
auto status = fastly::req_downstream_tls_raw_client_certificate(reinterpret_cast<char *>(ret->ptr), default_size, &ret->len);
207+
auto status = fastly::req_downstream_tls_raw_client_certificate(
208+
reinterpret_cast<char *>(ret->ptr), default_size, &ret->len);
208209
if (status == FASTLY_ERROR_BUFFER_LEN) {
209210
cabi_realloc(ret->ptr, default_size, 4, ret->len);
210-
status = fastly::req_downstream_tls_raw_client_certificate(reinterpret_cast<char *>(ret->ptr), ret->len, &ret->len);
211+
status = fastly::req_downstream_tls_raw_client_certificate(reinterpret_cast<char *>(ret->ptr),
212+
ret->len, &ret->len);
211213
}
212214
return convert_result(status, err);
213215
}
@@ -220,10 +222,12 @@ bool fastly_http_req_downstream_tls_ja3_md5(fastly_world_list_u8_t *ret, fastly_
220222
bool fastly_http_req_downstream_tls_client_hello(fastly_world_list_u8_t *ret, fastly_error_t *err) {
221223
auto default_size = 512;
222224
ret->ptr = static_cast<uint8_t *>(cabi_malloc(default_size, 4));
223-
auto status = fastly::req_downstream_tls_client_hello(reinterpret_cast<char *>(ret->ptr), default_size, &ret->len);
225+
auto status = fastly::req_downstream_tls_client_hello(reinterpret_cast<char *>(ret->ptr),
226+
default_size, &ret->len);
224227
if (status == FASTLY_ERROR_BUFFER_LEN) {
225228
cabi_realloc(ret->ptr, default_size, 4, ret->len);
226-
status = fastly::req_downstream_tls_client_hello(reinterpret_cast<char *>(ret->ptr), ret->len, &ret->len);
229+
status = fastly::req_downstream_tls_client_hello(reinterpret_cast<char *>(ret->ptr), ret->len,
230+
&ret->len);
227231
}
228232
return convert_result(status, err);
229233
}

0 commit comments

Comments
 (0)