Skip to content

Commit 3851bdc

Browse files
committed
Fix JET errors around matching methods for send_msg(...) (#166)
``` ┌ 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 7223f4f14dc3749515ae36e76973045e27791606) (cherry picked from commit 56fa9f214afd5f2c487ac4132aee8e50daf19c0e)
1 parent 2174c72 commit 3851bdc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/messages.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ end
102102
function send_msg(s::IO, header, msg)
103103
id = worker_id_from_socket(s)
104104
if id > -1
105-
return send_msg(worker_from_id(id), header, msg)
105+
return send_msg(worker_from_id(id)::Worker, header, msg)
106106
end
107107
send_msg_unknown(s, header, msg)
108108
end

0 commit comments

Comments
 (0)