From f54292e7d133686bbe46f224d6677a5f924bde13 Mon Sep 17 00:00:00 2001 From: Oleg Kovalov Date: Mon, 22 Jan 2024 18:26:55 +0100 Subject: [PATCH] all: use proper deprecation comment (#7273) Silences `go-critic` linter by fixing a capitalization error. --- cmd/boulder-wfe2/main.go | 2 +- cmd/crl-updater/main.go | 4 ++-- nonce/nonce.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/boulder-wfe2/main.go b/cmd/boulder-wfe2/main.go index ff9b4d911..d39b4b425 100644 --- a/cmd/boulder-wfe2/main.go +++ b/cmd/boulder-wfe2/main.go @@ -73,7 +73,7 @@ type Config struct { // this should contain all nonce-services from all DCs as we want to be // able to redeem nonces generated at any DC. // - // DEPRECATED: See RedeemNonceService, below. + // Deprecated: See RedeemNonceService, below. // TODO (#6610) Remove this after all configs have migrated to // `RedeemNonceService`. RedeemNonceServices map[string]cmd.GRPCClientConfig `validate:"required_without=RedeemNonceService,omitempty,min=1,dive"` diff --git a/cmd/crl-updater/main.go b/cmd/crl-updater/main.go index 2c47774e0..23032f130 100644 --- a/cmd/crl-updater/main.go +++ b/cmd/crl-updater/main.go @@ -63,7 +63,7 @@ type Config struct { // immediately; if the validity period of the issued certificates ever // changes downwards, the value must not change until after all certificates with // the old validity period have expired. - // DEPRECATED: This config value is no longer used. + // Deprecated: This config value is no longer used. // TODO(#6438): Remove this value. CertificateLifetime config.Duration `validate:"-"` @@ -79,7 +79,7 @@ type Config struct { // UpdatePeriod, starting from the Unix Epoch plus UpdateOffset, and // continuing forward into the future forever. This value must be strictly // less than the UpdatePeriod. - // DEPRECATED: This config value is not relevant with continuous updating. + // Deprecated: This config value is not relevant with continuous updating. // TODO(#7023): Remove this value. UpdateOffset config.Duration `validate:"-"` diff --git a/nonce/nonce.go b/nonce/nonce.go index fcd766d5c..d152e5c59 100644 --- a/nonce/nonce.go +++ b/nonce/nonce.go @@ -41,7 +41,7 @@ const ( // DeprecatedPrefixLen is the character length of a nonce prefix. // - // DEPRECATED: Use PrefixLen instead. + // Deprecated: Use PrefixLen instead. // TODO(#6610): Remove once we've moved to derivable prefixes by default. DeprecatedPrefixLen = 4