Y
Hacker News
new
|
ask
|
show
|
jobs
by
kyrra
3451 days ago
So I'm not 100% certain on this, but this flow seems like like it would be a good candidate for atomic.Value[0]? The the mutexes could be removed entirely. That way you don't need to get a lock on every config read.
[0]
https://golang.org/pkg/sync/atomic/#example_Value_config
1 comments
diogomonicapt
3451 days ago
Author here, I actually added a footnote exactly because of that fact:
https://diogomonica.com/2017/01/11/hitless-tls-certificate-r...
link