Skip to content

Commit 3b81266

Browse files
committed
Remove dead bundle builder log bytes constant
1 parent 6bfeb3a commit 3b81266

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

rust/operator-binary/src/controller.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,10 @@ const DEFAULT_CONSOLE_LOG_LEVEL: LogLevel = LogLevel::INFO;
104104
const DEFAULT_SERVER_LOG_LEVEL: LogLevel = LogLevel::INFO;
105105
const DEFAULT_DECISION_LOG_LEVEL: LogLevel = LogLevel::NONE;
106106

107-
// bundle builder: ~ 5 MB x 2
108-
// these sizes are needed both for the single file (for multilog, in bytes) as well as the total (for the EmptyDir)
107+
// bundle builder: ~ 5 MB x 5
108+
// these sizes are needed both for the single file (for rotation, in bytes) as well as the total (for the EmptyDir)
109109
const OPA_ROLLING_BUNDLE_BUILDER_LOG_FILE_SIZE_MB: u32 = 5;
110-
const OPA_ROLLING_BUNDLE_BUILDER_LOG_FILE_SIZE_BYTES: u32 =
111-
OPA_ROLLING_BUNDLE_BUILDER_LOG_FILE_SIZE_MB * 1000000;
112-
const OPA_ROLLING_BUNDLE_BUILDER_LOG_FILES: u32 = 2;
110+
const OPA_ROLLING_BUNDLE_BUILDER_LOG_FILES: u32 = 5;
113111
const MAX_OPA_BUNDLE_BUILDER_LOG_FILE_SIZE: MemoryQuantity = MemoryQuantity {
114112
value: (OPA_ROLLING_BUNDLE_BUILDER_LOG_FILE_SIZE_MB * OPA_ROLLING_BUNDLE_BUILDER_LOG_FILES)
115113
as f32,

0 commit comments

Comments
 (0)