Skip to content

Commit d06aa73

Browse files
authored
Fix a JET error around matching methods for getindex(...) (#170)
``` ┌ setup_launched_worker(manager::Distributed.SSHManager, wconfig::Distributed.WorkerConfig, launched_q::Vector{Int64}) @ Distributed /workpath/Distributed.jl/src/cluster.jl:563 │ no matching method found `getindex(::Nothing, ::Symbol)` (1/2 union split): cnt = ((wconfig::Distributed.WorkerConfig).environ::Union{Nothing, Dict})[:cpu_threads] └──────────────────── ``` (cherry picked from commit 61ff327)
1 parent 0cf9910 commit d06aa73

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
@@ -570,7 +570,7 @@ function setup_launched_worker(manager, wconfig, launched_q)
570570
# same type. This is done by setting an appropriate value to `WorkerConfig.cnt`.
571571
cnt = something(wconfig.count, 1)
572572
if cnt === :auto
573-
cnt = wconfig.environ[:cpu_threads]
573+
cnt = (wconfig.environ::AbstractDict)[:cpu_threads]
574574
end
575575
cnt = cnt - 1 # Removing self from the requested number
576576

0 commit comments

Comments
 (0)