Skip to content

Commit

Permalink
clean up and format
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Nov 12, 2024
1 parent 51e2d5a commit 8be6cd2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,4 @@ jobs:
sudo pkg_add py3-urllib3
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')"
chmod a+x builder
./builder build -p ${{ env.PACKAGE_NAME }}
./builder build -p ${{ env.PACKAGE_NAME }}
2 changes: 0 additions & 2 deletions include/aws/io/private/event_loop_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,6 @@ struct aws_event_loop *aws_event_loop_new_default(struct aws_allocator *alloc, a
/**
* Creates an instance of the default event loop implementation for the current architecture and operating system using
* extendable options.
*
* Please note the event loop type defined in the options will be ignored.
*/
AWS_IO_API
struct aws_event_loop *aws_event_loop_new(struct aws_allocator *alloc, const struct aws_event_loop_options *options);
Expand Down
8 changes: 2 additions & 6 deletions include/aws/io/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ enum aws_socket_type {
};

/**
* Socket Implementation type. Decides which socket implementation is used. If set to `AWS_SOCKET_IMPL_PLATFORM_DEFAULT`, it
* will automatically use the platform’s default.
* Socket Implementation type. Decides which socket implementation is used. If set to
* `AWS_SOCKET_IMPL_PLATFORM_DEFAULT`, it will automatically use the platform’s default.
*
* PLATFORM DEFAULT SOCKET IMPLEMENTATION TYPE
* Linux | AWS_SOCKET_IMPL_POSIX
Expand Down Expand Up @@ -206,25 +206,21 @@ aws_ms_fn_ptr aws_winsock_get_connectex_fn(void);
aws_ms_fn_ptr aws_winsock_get_acceptex_fn(void);
#endif


int aws_socket_init_posix(
struct aws_socket *socket,
struct aws_allocator *alloc,
const struct aws_socket_options *options);


int aws_socket_init_winsock(
struct aws_socket *socket,
struct aws_allocator *alloc,
const struct aws_socket_options *options);


int aws_socket_init_apple_nw_socket(
struct aws_socket *socket,
struct aws_allocator *alloc,
const struct aws_socket_options *options);


AWS_EXTERN_C_BEGIN

/**
Expand Down
6 changes: 2 additions & 4 deletions source/event_loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
#include <aws/common/thread.h>

#ifdef AWS_USE_APPLE_NETWORK_FRAMEWORK
static enum aws_event_loop_type s_default_event_loop_type_override = AWS_EVENT_LOOP_DISPATCH_QUEUE;
static enum aws_event_loop_type s_default_event_loop_type_override = AWS_EVENT_LOOP_DISPATCH_QUEUE;
#else
static enum aws_event_loop_type s_default_event_loop_type_override = AWS_EVENT_LOOP_PLATFORM_DEFAULT;
static enum aws_event_loop_type s_default_event_loop_type_override = AWS_EVENT_LOOP_PLATFORM_DEFAULT;
#endif

struct aws_event_loop *aws_event_loop_new_default(struct aws_allocator *alloc, aws_io_clock_fn *clock) {
Expand Down Expand Up @@ -697,5 +697,3 @@ struct aws_event_loop *aws_event_loop_new_epoll_with_options(
return NULL;
}
#endif // AWS_ENABLE_KQUEUE


1 change: 0 additions & 1 deletion source/exponential_backoff_retry_strategy.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include <aws/common/mutex.h>
#include <aws/common/shutdown_types.h>
#include <aws/common/task_scheduler.h>
#include <aws/common/ref_count.h>

#include <inttypes.h>

Expand Down

0 comments on commit 8be6cd2

Please sign in to comment.