Skip to content

Commit e7b4fc2

Browse files
rfredetteMiciah
andauthored
Be explicit about crlsMutex's use
Co-authored-by: Miciah Dashiel Butler Masters <[email protected]>
1 parent e6243d4 commit e7b4fc2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/router/crl/crl.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,10 @@ var (
6868
// CABundleFilename is the fully qualified path to the currently in use CA bundle.
6969
CABundleFilename = filepath.Join(mtlsLatestSymlink, caBundleBasename)
7070
// crlsUpdated is true when all CRLs have been successfully updated, and false when there are missing CRLs.
71+
// You must take crlsMutex before using crlsUpdated.
7172
crlsUpdated = false
72-
crlsMutex = sync.Mutex{}
73+
// crlsMutex protects crlsUpdated.
74+
crlsMutex = sync.Mutex{}
7375
)
7476

7577
// authorityKeyIdentifier is a certificate's authority key identifier.

0 commit comments

Comments
 (0)