test_smartreceive_function #1
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user