summaryrefslogtreecommitdiff
path: root/internal/config/initializer.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-07-04 10:57:22 +0300
committerPaul Buetow <paul@buetow.org>2025-07-04 10:57:22 +0300
commitaa2f547cf2b6136dc60f541f30c27a426ec7c6c8 (patch)
tree6180691fc7a0753f82c16aefdbf7da078928a3ae /internal/config/initializer.go
parentbecf8a2ea235ee37adceabc1733ae8727cec5488 (diff)
refactor: change turbo boost to be enabled by default
- Changed environment variable from DTAIL_TURBOBOOST_ENABLE to DTAIL_TURBOBOOST_DISABLE - Changed config field from TurboModeEnable to TurboBoostDisable - Turbo boost is now enabled by default and must be explicitly disabled - Updated all code references, documentation, and examples - No change in functionality, only inverted the boolean logic This makes turbo boost opt-out rather than opt-in, providing better default performance for large files while allowing users to disable it for scenarios where it adds overhead. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'internal/config/initializer.go')
-rw-r--r--internal/config/initializer.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/config/initializer.go b/internal/config/initializer.go
index e750a1a..146d1a0 100644
--- a/internal/config/initializer.go
+++ b/internal/config/initializer.go
@@ -92,10 +92,10 @@ func (in *initializer) processEnvVars(args *Args) {
if len(sshPrivateKeyPathFile) > 0 && args.SSHPrivateKeyFilePath == "" {
args.SSHPrivateKeyFilePath = sshPrivateKeyPathFile
}
- // Check if turbo mode should be enabled from environment variable
- // This allows backward compatibility with existing scripts
- if Env("DTAIL_TURBOBOOST_ENABLE") {
- in.Server.TurboModeEnable = true
+ // Check if turbo boost should be disabled from environment variable
+ // Turbo boost is enabled by default, can be explicitly disabled
+ if Env("DTAIL_TURBOBOOST_DISABLE") {
+ in.Server.TurboBoostDisable = true
}
}