Skip to content

Commit d396a8c

Browse files
authored
Fix some JET errors around matching methods for send_connection_hdr(...) and send_msg_now(...) (#180)
``` ┌ 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 3e74cbc)
1 parent 231da28 commit d396a8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cluster.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ function create_worker(manager::ClusterManager, wconfig::WorkerConfig)
626626
end
627627
end
628628

629-
w = Worker(w_stub.id, r_s, w_s, manager; config=wconfig)
629+
w = Worker(w_stub.id, r_s, w_s, manager; config=wconfig)::Worker
630630
# install a finalizer to perform cleanup if necessary
631631
finalizer(w) do w
632632
if myid() == 1

0 commit comments

Comments
 (0)