test_smartreceive_function #1

Merged
ton merged 15 commits from test_smartreceive_function into main 2026-02-12 23:34:18 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit dcf79c92d1 - Show all commits

View File

@@ -183,7 +183,7 @@ function smartsend(
# Decision: Direct vs Link
if payload_size < size_threshold # Check if payload is small enough for direct transport
# Direct path - Base64 encode and send via NATS
payload_b64 = Base64.encode(payload_bytes) # Encode bytes as base64 string
payload_b64 = Base64.base64encode(payload_bytes) # Encode bytes as base64 string
log_trace(cid, "Using direct transport for $payload_size bytes") # Log transport choice
env = MessageEnvelope( # Create envelope for direct transport

View File

@@ -17,7 +17,7 @@ const FILESERVER_URL = "http://192.168.88.104:8080"
correlation_id = string(uuid4())
# File path for large binary payload test
const LARGE_FILE_PATH = "./testFile_large.zip"
const LARGE_FILE_PATH = "./testFile_small.zip"
const filename = basename(LARGE_FILE_PATH)
# Helper: Log with correlation ID