Skip to content

Resuse the same Client for connecting to Google DNS #2

@freddyaboulton

Description

@freddyaboulton

async with httpx.AsyncClient() as client:

We should use a single client instance in this case as it will save us from opening a new connection every time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions