Skip to content

Commit 0ca1a99

Browse files
committed
fix(cpp): ClientConfig 重复声明的 file transfer 字段去重(编译失败修复)
1 parent cec2e3d commit 0ca1a99

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

sdks/cpp/include/croupier/sdk/croupier_client.h

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ struct ClientConfig {
8585
// handler. Server remains the authoritative validator.
8686
bool validate_input_payloads = false;
8787

88+
8889
// ========== Optional TLS Configuration ==========
8990
std::string cert_file; // Client certificate file path
9091
std::string key_file; // Client private key file path
@@ -114,14 +115,6 @@ struct ClientConfig {
114115
bool debug_logging = false; // Enable debug level logging
115116
std::string log_level = "INFO"; // Log level: "DEBUG", "INFO", "WARN", "ERROR", "OFF"
116117

117-
// ========== File Transfer Configuration (SECURITY SENSITIVE) ==========
118-
// File transfer is DISABLED by default for security reasons.
119-
// Enabling requires explicit configuration and security review.
120-
bool enable_file_transfer = false; // Enable file transfer functionality (default: false)
121-
int max_file_size = 10485760; // Max file size in bytes (default: 10MB)
122-
std::vector<std::string> allowed_extensions; // Allowed file extensions (whitelist, e.g., ".png", ".jpg")
123-
std::vector<std::string> allowed_mime_types; // Allowed MIME types (whitelist, e.g., "image/png")
124-
int upload_timeout = 300000; // Upload timeout in milliseconds (default: 5 minutes)
125118
};
126119

127120
// Reconnection configuration with exponential backoff
@@ -188,6 +181,8 @@ struct InvokerConfig {
188181
// Enabling requires explicit configuration and security review.
189182
bool enable_file_transfer = false; // Enable file transfer functionality (default: false)
190183
int max_file_size = 10485760; // Max file size in bytes (default: 10MB)
184+
// F:下发文件仅落盘至此暂存目录(不自动应用,hotpatch runner 编排)
185+
std::string file_staging_dir = "./croupier-staging";
191186
std::vector<std::string> allowed_extensions; // Allowed file extensions (whitelist, e.g., ".png", ".jpg")
192187
std::vector<std::string> allowed_mime_types; // Allowed MIME types (whitelist, e.g., "image/png")
193188
int upload_timeout = 300000; // Upload timeout in milliseconds (default: 5 minutes)

0 commit comments

Comments
 (0)