sse: Add space between duration and : (#3403)

This commit is contained in:
Glen De Cauwsemaecker 2025-07-09 12:20:05 +02:00 committed by GitHub
parent fb64e72de9
commit 617594cd4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -307,7 +307,7 @@ impl Event {
self
}
/// Set the event's retry timeout field (`retry:<timeout>`).
/// Set the event's retry timeout field (`retry: <timeout>`).
///
/// This sets how long clients will wait before reconnecting if they are disconnected from the
/// SSE endpoint. Note that this is just a hint: clients are free to wait for longer if they
@ -323,7 +323,7 @@ impl Event {
self.flags.insert(EventFlags::HAS_RETRY);
let buffer = self.buffer.as_mut();
buffer.extend_from_slice(b"retry:");
buffer.extend_from_slice(b"retry: ");
let secs = duration.as_secs();
let millis = duration.subsec_millis();