Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

♻️ Refactor: Remove mutex lock in logger middleware #2840

Merged
merged 1 commit into from
Feb 10, 2024

Commits on Feb 9, 2024

  1. ♻️ Refactor: Remove mutex lock in logger middleware

    While not all implementations of io.Write will be goroutine safe, the
    vast majority of users of the logger middleware are likely to use
    os.File, which does implement safe concurrent writes. If users require
    locking, they can implement this on an as-needed basis. The risk of
    having global locking is that a slow write can hold up the entire
    server.
    nickajacks1 committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    967f943 View commit details
    Browse the repository at this point in the history