diff options
author | Aurelia <aurelia@schittler.dev> | 2020-11-13 23:28:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-13 15:28:21 -0700 |
commit | 7a3d9d81fe5836894b39d0e218193f7cffd732ff (patch) | |
tree | 1e69f3e26340dd4671b649daa0c5b08864c78707 /modules/caddytls/standardstek | |
parent | 95af4262a8adf12e0c5eb178d9e521903eb8b0e4 (diff) |
basicauth: Minor internal improvements (#3861)
* nitpicks and small improvements in basicauth module
1:
roll two if statements into one, since err will be nil in the second case anyhow
2:
unlock cache mutex after reading the key, as this happens by-value and reduces code complexity
3:
switch cache sync.Mutex to sync.RWMutex for better concurrency on cache fast track
* allocate the right kind of mutex
Diffstat (limited to 'modules/caddytls/standardstek')
0 files changed, 0 insertions, 0 deletions