Skip to content

Commit cf32161

Browse files
committed
remove deprecated flag
1 parent 2790083 commit cf32161

3 files changed

Lines changed: 4 additions & 10 deletions

File tree

cmd/tesseract/aws/main.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ func init() {
4949
flag.Var(&notAfterLimit, "not_after_limit", "Cut off point of notAfter dates - only notAfter dates strictly *before* notAfterLimit will be accepted. Leaving this unset or empty means no upper bound on the accepted range. RFC3339 format, e.g: 2024-01-02T15:04:05Z.")
5050
flag.Var(&rootsRejectFingerprints, "roots_reject_fingerprints", "Hex-encoded SHA-256 fingerprint of a root certificate to reject. May be specified multiple times.")
5151
flag.Float64Var(&dedupRL, "rate_limit_dedup", 100, "Rate limit for resolving duplicate submissions, in requests per second - i.e. duplicate requests for already integrated entries, which need to be fetched from the log storage by TesseraCT to extract their timestamp. When 0, all duplicate submissions are rejected. When negative, no rate limit is applied.")
52-
// DEPRECATED: will be removed shortly
53-
flag.Float64Var(&dedupRL, "pushback_max_dedupe_in_flight", 100, "DEPRECATED: use rate_limit_dedup. Maximum number of in-flight duplicate add requests - i.e. the number of requests matching entries that have already been integrated, but need to be fetched by the client to retrieve their timestamp. When 0, duplicate entries are always pushed back.")
5452
flag.Var(&rootsRemoteFetchURLs, "roots_remote_fetch_url", "URL to fetch additional trusted roots from. May be specified multiple times.")
5553
}
5654

cmd/tesseract/gcp/main.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ func init() {
5757
flag.Var(&additionalSigners, "additional_signer_private_key_secret_name", "Private key secret name for additional Ed25519 checkpoint signatures, may be supplied multiple times. Format: projects/{projectId}/secrets/{secretName}/versions/{secretVersion}.")
5858
flag.Var(&rootsRejectFingerprints, "roots_reject_fingerprints", "Hex-encoded SHA-256 fingerprint of a root certificate to reject. May be specified multiple times.")
5959
flag.Float64Var(&dedupRL, "rate_limit_dedup", 100, "Rate limit for resolving duplicate submissions, in requests per second - i.e. duplicate requests for already integrated entries, which need to be fetched from the log storage by TesseraCT to extract their timestamp. When 0, all duplicate submissions are rejected. When negative, no rate limit is applied.")
60-
// DEPRECATED: will be removed shortly
61-
flag.Float64Var(&dedupRL, "pushback_max_dedupe_in_flight", 100, "DEPRECATED: use rate_limit_dedup. Maximum number of in-flight duplicate add requests - i.e. the number of requests matching entries that have already been integrated, but need to be fetched by the client to retrieve their timestamp. When 0, duplicate entries are always pushed back.")
6260
flag.Var(&rootsRemoteFetchURLs, "roots_remote_fetch_url", "URL to fetch additional trusted roots from. May be specified multiple times.")
6361
}
6462

cmd/tesseract/posix/main.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ func init() {
5555
flag.Var(&additionalSigners, "additional_signer", "Path to a file containing an additional note Signer formatted keys for checkpoints. May be specified multiple times.")
5656
flag.Var(&rootsRejectFingerprints, "roots_reject_fingerprints", "Hex-encoded SHA-256 fingerprint of a root certificate to reject. May be specified multiple times.")
5757
flag.Float64Var(&dedupRL, "rate_limit_dedup", 100, "Rate limit for resolving duplicate submissions, in requests per second - i.e. duplicate requests for already integrated entries, which need to be fetched from the log storage by TesseraCT to extract their timestamp. When 0, all duplicate submissions are rejected. When negative, no rate limit is applied.")
58-
// DEPRECATED: will be removed shortly
59-
flag.Float64Var(&dedupRL, "pushback_max_dedupe_in_flight", 100, "DEPRECATED: use rate_limit_dedup. Maximum number of in-flight duplicate add requests - i.e. the number of requests matching entries that have already been integrated, but need to be fetched by the client to retrieve their timestamp. When 0, duplicate entries are always pushed back.")
6058
flag.Var(&rootsRemoteFetchURLs, "roots_remote_fetch_url", "URL to fetch additional trusted roots from. May be specified multiple times.")
6159
}
6260

@@ -249,10 +247,10 @@ func newStorage(ctx context.Context, signer note.Signer) (st *storage.CTStorage,
249247
CompactionInterval: *antispamCompactionInterval,
250248
BadgerOptions: func(o badger.Options) badger.Options {
251249
return o.
252-
WithCompression(options.None). // Off as this appears to cause memory issues when compacting large indices.
253-
WithMemTableSize(*antispamMemTableSize). // Default tunes memtables for high write throughput
254-
WithBaseTableSize(*antispamBaseTableSize). // Default tunes to reduce file count
255-
WithNumCompactors(*antispamNumCompactors). // Default tunes to be able keep up with high throughput of LSM merges
250+
WithCompression(options.None). // Off as this appears to cause memory issues when compacting large indices.
251+
WithMemTableSize(*antispamMemTableSize). // Default tunes memtables for high write throughput
252+
WithBaseTableSize(*antispamBaseTableSize). // Default tunes to reduce file count
253+
WithNumCompactors(*antispamNumCompactors). // Default tunes to be able keep up with high throughput of LSM merges
256254
WithIndexCacheSize(int64(antispamIndexCacheBytes)).
257255
WithBlockCacheSize(int64(antispamBlockCacheBytes))
258256
},

0 commit comments

Comments
 (0)