From a18f0b94376a12b9bf1c8d18d9bb43473e6e04b8 Mon Sep 17 00:00:00 2001 From: Dilum Aluthge Date: Fri, 20 Feb 2026 09:42:12 -0500 Subject: [PATCH] Fix some JET errors around matching methods for `send_connection_hdr(...)` and `send_msg_now(...)` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` ┌ create_worker(manager::Distributed.ClusterManager, wconfig::Distributed.WorkerConfig) @ Distributed ~/Distributed.jl/src/cluster.jl:709 │ no matching method found `send_connection_hdr(::Distributed.LocalProcess, ::Bool)` (1/2 union split): Distributed.send_connection_hdr(w::Union{Distributed.LocalProcess, Distributed.Worker}, true) └──────────────────── ``` ``` ┌ create_worker(manager::Distributed.ClusterManager, wconfig::Distributed.WorkerConfig) @ Distributed ~/Distributed.jl/src/cluster.jl:712 │ no matching method found `send_msg_now(::Distributed.LocalProcess, ::Distributed.MsgHeader, ::Distributed.JoinPGRPMsg)` (1/2 union split): Distributed.send_msg_now(w::Union{Distributed.LocalProcess, Distributed.Worker}, Distributed.MsgHeader(Distributed.RRID(0, 0)::Distributed.RRID, ntfy_oid::Distributed.RRID)::Distributed.MsgHeader, join_message) └──────────────────── ``` (cherry picked from commit 3e74cbcb9e8446cd56e681e3e6ca6be108ec2c39) --- src/cluster.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cluster.jl b/src/cluster.jl index 99bc34c..848b908 100644 --- a/src/cluster.jl +++ b/src/cluster.jl @@ -626,7 +626,7 @@ function create_worker(manager::ClusterManager, wconfig::WorkerConfig) end end - w = Worker(w_stub.id, r_s, w_s, manager; config=wconfig) + w = Worker(w_stub.id, r_s, w_s, manager; config=wconfig)::Worker # install a finalizer to perform cleanup if necessary finalizer(w) do w if myid() == 1