fix function name in comment (#21214)

Signed-off-by: cui fliter <imcusg@gmail.com>
This commit is contained in:
cui fliter
2023-06-17 04:03:07 +08:00
committed by GitHub
parent d76424cb53
commit 8b30657ddc
4 changed files with 4 additions and 4 deletions

View File

@@ -118,7 +118,7 @@ func verifySignatureAtTime(p7 *PKCS7, signer signerInfo, truststore *x509.CertPo
} }
} }
// dsaSignature verifies the DSA signature on a PKCS7 document. DSA support was // dsaCheckSignature verifies the DSA signature on a PKCS7 document. DSA support was
// removed from Go's crypto/x509 support prior to Go 1.16. This allows // removed from Go's crypto/x509 support prior to Go 1.16. This allows
// verifying legacy signatures until affected applications can be migrated off // verifying legacy signatures until affected applications can be migrated off
// of DSA. // of DSA.

View File

@@ -222,7 +222,7 @@ func (c *BaseCommand) DefaultWrappingLookupFunc(operation, path string) string {
return api.DefaultWrappingLookupFunc(operation, path) return api.DefaultWrappingLookupFunc(operation, path)
} }
// getValidationRequired checks to see if the secret exists and has an MFA // getMFAValidationRequired checks to see if the secret exists and has an MFA
// requirement. If MFA is required and the number of constraints is greater than // requirement. If MFA is required and the number of constraints is greater than
// 1, we can assert that interactive validation is not required. // 1, we can assert that interactive validation is not required.
func (c *BaseCommand) getMFAValidationRequired(secret *api.Secret) bool { func (c *BaseCommand) getMFAValidationRequired(secret *api.Secret) bool {

View File

@@ -80,7 +80,7 @@ func ensureNoLeadingSlash(s string) string {
return s return s
} }
// columnOuput prints the list of items as a table with no headers. // columnOutput prints the list of items as a table with no headers.
func columnOutput(list []string, c *columnize.Config) string { func columnOutput(list []string, c *columnize.Config) string {
if len(list) == 0 { if len(list) == 0 {
return "" return ""

View File

@@ -125,7 +125,7 @@ func (j *JobManager) AddJob(job Job, queueID string) {
} }
} }
// GetCurrentJobCount returns the total number of pending jobs in the job manager // GetPendingJobCount returns the total number of pending jobs in the job manager
func (j *JobManager) GetPendingJobCount() int { func (j *JobManager) GetPendingJobCount() int {
j.l.RLock() j.l.RLock()
defer j.l.RUnlock() defer j.l.RUnlock()