Skip to content

Commit 9c03643

Browse files
authored
Unix-only-sse (#40)
1 parent 55dcefd commit 9c03643

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/eval/bt_runner.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ impl SseWriter {
125125
}
126126

127127
fn create_sse_writer() -> Option<Arc<SseWriter>> {
128-
// Try Unix domain socket first (BT_EVAL_SSE_SOCK)
128+
// Unix socket SSE is only available on Unix platforms; Windows continues
129+
// to the TCP fallback below.
130+
#[cfg(unix)]
129131
if let Ok(sock_path) = std::env::var("BT_EVAL_SSE_SOCK") {
130132
if !sock_path.is_empty() {
131133
match std::os::unix::net::UnixStream::connect(&sock_path) {

0 commit comments

Comments
 (0)