mirror of
https://github.com/tokio-rs/axum.git
synced 2025-09-28 13:30:39 +00:00
sse: Add space between duration and :
(#3403)
This commit is contained in:
parent
fb64e72de9
commit
617594cd4a
@ -307,7 +307,7 @@ impl Event {
|
|||||||
self
|
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
|
/// 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
|
/// 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);
|
self.flags.insert(EventFlags::HAS_RETRY);
|
||||||
|
|
||||||
let buffer = self.buffer.as_mut();
|
let buffer = self.buffer.as_mut();
|
||||||
buffer.extend_from_slice(b"retry:");
|
buffer.extend_from_slice(b"retry: ");
|
||||||
|
|
||||||
let secs = duration.as_secs();
|
let secs = duration.as_secs();
|
||||||
let millis = duration.subsec_millis();
|
let millis = duration.subsec_millis();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user