Skip to content

perf(client): Reuse default client to improve quick request efficiency#40

Merged
0x676e67 merged 1 commit intomainfrom
perf
Feb 18, 2025
Merged

perf(client): Reuse default client to improve quick request efficiency#40
0x676e67 merged 1 commit intomainfrom
perf

Conversation

@0x676e67
Copy link
Copy Markdown
Owner

This pull request includes several changes to the Client implementation in the src/client.rs file, primarily focusing on refactoring the default method and updating imports. Below are the most important changes:

Refactoring and Improvements:

  • Refactored Client default implementation: The default method was moved from an impl Default for Client block to a static method within the Client implementation. This new method initializes a Client with default settings, including disabling Hickory DNS and keepalive. [1] [2]

Codebase Simplification:

  • Updated imports: The std imports were refactored to include LazyLock in a nested manner, improving readability and organization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant