Skip to content

Commit 37fecef

Browse files
authored
Merge pull request #436 from JuliaParallel/jps/submission-var-bug
submission: Fix variable shadowing bug
2 parents 99b902c + 20121d8 commit 37fecef

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/submission.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,16 @@ function eager_submit_internal!(ctx, state, task, tid, payload; uid_to_tid=Dict{
4141
for (idx, (pos, arg)) in enumerate(args)
4242
pos::Union{Symbol,Nothing}
4343
newarg = if arg isa EagerThunk
44-
uid = arg.uid
45-
tid = if haskey(id_map, uid)
46-
id_map[uid]
44+
arg_uid = arg.uid
45+
arg_tid = if haskey(id_map, arg_uid)
46+
id_map[arg_uid]
4747
else
48-
uid_to_tid[uid]
48+
uid_to_tid[arg_uid]
4949
end
50-
state.thunk_dict[tid]
50+
state.thunk_dict[arg_tid]
5151
elseif arg isa Sch.ThunkID
52-
tid = arg.id
53-
state.thunk_dict[tid]
52+
arg_tid = arg.id
53+
state.thunk_dict[arg_tid]
5454
else
5555
arg
5656
end

0 commit comments

Comments
 (0)