Skip to content

Commit 50c4fe8

Browse files
authored
improve various inferrabilities, fix some errors (JuliaLang/julia#40463)
1 parent e9a2bb4 commit 50c4fe8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cluster.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ function check_worker_state(w::Worker)
171171
end
172172
end
173173

174-
exec_conn_func(id::Int) = exec_conn_func(worker_from_id(id))
174+
exec_conn_func(id::Int) = exec_conn_func(worker_from_id(id)::Worker)
175175
function exec_conn_func(w::Worker)
176176
try
177177
f = notnothing(w.conn_func)

src/remotecall.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ function send_del_client(rr)
259259
if rr.where == myid()
260260
del_client(rr)
261261
elseif id_in_procs(rr.where) # process only if a valid worker
262-
w = worker_from_id(rr.where)
262+
w = worker_from_id(rr.where)::Worker
263263
push!(w.del_msgs, (remoteref_id(rr), myid()))
264264
w.gcflag = true
265265
notify(any_gc_flag)

0 commit comments

Comments
 (0)