Skip to content

Commit

Permalink
Be explicit about crlsMutex's use
Browse files Browse the repository at this point in the history
Co-authored-by: Miciah Dashiel Butler Masters <[email protected]>
  • Loading branch information
rfredette and Miciah authored Sep 17, 2024
1 parent e6243d4 commit e7b4fc2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/router/crl/crl.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ var (
// CABundleFilename is the fully qualified path to the currently in use CA bundle.
CABundleFilename = filepath.Join(mtlsLatestSymlink, caBundleBasename)
// crlsUpdated is true when all CRLs have been successfully updated, and false when there are missing CRLs.
// You must take crlsMutex before using crlsUpdated.
crlsUpdated = false
crlsMutex = sync.Mutex{}
// crlsMutex protects crlsUpdated.
crlsMutex = sync.Mutex{}
)

// authorityKeyIdentifier is a certificate's authority key identifier.
Expand Down

0 comments on commit e7b4fc2

Please sign in to comment.