From 491798aa6ec7adfd250306a26d15529f56b2b681 Mon Sep 17 00:00:00 2001 From: Dilum Aluthge Date: Thu, 12 Feb 2026 18:37:57 -0500 Subject: [PATCH] Fix JET errors around matching methods for `send_msg(...)` (#166) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a forward-port of https://github.com/JuliaLang/Distributed.jl/pull/166 (https://github.com/JuliaLang/Distributed.jl/commit/56fa9f214afd5f2c487ac4132aee8e50daf19c0e). ``` ┌ send_msg(s::IO, header::Any, msg::Any) @ Distributed /workpath/Distributed.jl/src/messages.jl:105 │ no matching method found `send_msg(::Distributed.LocalProcess, ::Any, ::Any)` (1/2 union split): Distributed.send_msg(Distributed.worker_from_id(id::Int64)::Union{Distributed.LocalProcess, Distributed.Worker}, header::Any, msg::Any) └──────────────────── ``` (cherry picked from commit 56fa9f214afd5f2c487ac4132aee8e50daf19c0e) --- src/messages.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/messages.jl b/src/messages.jl index 6e895f0..a27b9ed 100644 --- a/src/messages.jl +++ b/src/messages.jl @@ -102,7 +102,7 @@ end function send_msg(s::IO, header, msg) id = worker_id_from_socket(s) if id > -1 - return send_msg(worker_from_id(id), header, msg) + return send_msg(worker_from_id(id)::Worker, header, msg) end send_msg_unknown(s, header, msg) end