This commit is contained in:
2026-02-10 08:19:10 +07:00
parent eb99df02c9
commit 4019b35574
3 changed files with 29 additions and 15 deletions

View File

@@ -104,7 +104,7 @@ function log_trace(correlation_id::String, message::String)
timestamp = Dates.now() # Get current timestamp
@info "[$timestamp] [Correlation: $correlation_id] $message" # Log formatted message
end
2112
""" smartsend - Send data either directly via NATS or via a fileserver URL, depending on payload size
@@ -346,8 +346,7 @@ function smartreceive(
max_delay::Int = 5000
)
# Parse the envelope
env = MessageEnvelope(String(msg.data)) # Parse NATS message data as JSON envelope
env = MessageEnvelope(String(msg.payload)) # Parse NATS message data as JSON envelope
log_trace(env.correlation_id, "Processing received message") # Log message processing start
# Check transport type