This commit is contained in:
2026-02-10 16:05:11 +07:00
parent 94fde6cea9
commit 5aab1d0c52
2 changed files with 8 additions and 8 deletions

View File

@@ -162,7 +162,7 @@ function smartsend(
subject::String, # smartreceive's subject
data::Any,
type::String = "json";
dataname=string(UUIDs.uuid4()),
dataname="NA",
nats_url::String = DEFAULT_NATS_URL,
fileserver_url::String = DEFAULT_FILESERVER_URL,
fileServerUploadHandler::Function=plik_oneshot_upload, # a function to handle uploading data to specific HTTP fileserver
@@ -217,7 +217,7 @@ function smartsend(
type = type,
transport = "link",
url = url,
metadata = Dict("content_length" => payload_size, "format" => "arrow_ipc_stream")
metadata = Dict("dataname" => dataname, "content_length" => payload_size, "format" => "arrow_ipc_stream")
)
msg_json = envelope_to_json(env) # Convert envelope to JSON