Skip to content

Commit e1a3de7

Browse files
committed
Fix a JET error around matching methods for read_worker_host_port(...) (#171)
``` ┌ connect(manager::Distributed.SSHManager, pid::Int64, config::Distributed.WorkerConfig) @ Distributed /workpath/Distributed.jl/src/managers.jl:582 │ no matching method found `read_worker_host_port(::Nothing)` (1/2 union split): Distributed.read_worker_host_port((config::Distributed.WorkerConfig).io::Union{Nothing, IO}) └──────────────────── ``` (cherry picked from commit d259b8d3cc24686430a7285abeed574ed46768e7) (cherry picked from commit 0cf99106072adf5527acd48c668cd95c925e114f)
1 parent 2364676 commit e1a3de7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/managers.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ function connect(manager::ClusterManager, pid::Int, config::WorkerConfig)
606606

607607
# master connecting to workers
608608
if config.io !== nothing
609-
(bind_addr, port::Int) = read_worker_host_port(config.io)
609+
(bind_addr, port::Int) = read_worker_host_port(config.io::IO)
610610
pubhost = something(config.host, bind_addr)
611611
config.host = pubhost
612612
config.port = port

0 commit comments

Comments
 (0)