Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
kyrra
· 9y ago · 0 comments
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
Comments
[–]
diogomonicapt
9y ago
Author here, I actually added a footnote exactly because of that fact:
https://diogomonica.com/2017/01/11/hitless-tls-certificate-r...