Skip to content

Commit 7d93f67

Browse files
...
1 parent 2a8df42 commit 7d93f67

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

src/cluster.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ function read_worker_host_port(io::IO)
355355
throw(LaunchWorkerError("Unable to read host:port string from worker. Launch command exited with error?"))
356356
end
357357

358-
@info "conninfo: $conninfo"
358+
#@info "conninfo: $conninfo"
359359

360360
ntries -= 1
361361
bind_addr, port = parse_connection_info(conninfo)

src/macros.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ julia> fetch(f)
4646
function check_args_2(args...)
4747
na = length(args)
4848
if na==1
49-
role = :(role = :default)
49+
role = Expr(:kw, :role, :(:defaut)) #:(role = :default)
5050
expr = args[1]
5151
elseif na==2
5252
role = args[1]
@@ -107,7 +107,7 @@ julia> fetch(f)
107107
function check_args_3a(args...)
108108
na = length(args)
109109
if na==2
110-
role = :(role = :default)
110+
role = Expr(:kw, :role, :(:defaut)) #:(role = :default)
111111
p = args[1]
112112
expr = args[2]
113113
elseif na==3
@@ -123,7 +123,7 @@ end
123123
macro spawnat(args...)
124124
rolearg, p, expr = check_args_3a(args...)
125125

126-
#@info rolearg, typeof(rolearg)
126+
#@info rolearg, typeof(rolearg)
127127

128128
thunk = esc(:(()->($expr)))
129129
var = esc(Base.sync_varname)
@@ -132,7 +132,7 @@ macro spawnat(args...)
132132
else
133133
spawncall = :(spawnat($(esc(p)), $thunk; $(esc(rolearg))))
134134
end
135-
quote
135+
quote
136136
local ref = $spawncall
137137
if $(Expr(:islocal, var))
138138
put!($var, ref)
@@ -247,7 +247,7 @@ function check_args_3b(args...)
247247

248248
na = length(args)
249249
if na==1
250-
rolearg = :(role = :default)
250+
rolearg = Expr(:kw, :role, :(:defaut)) #:(role = :default)
251251
reducer = nothing
252252
loop = args[1]
253253
elseif na==2
@@ -256,7 +256,7 @@ function check_args_3b(args...)
256256
reducer = nothing
257257
loop = args[2]
258258
else
259-
rolearg = :(role = :default)
259+
rolearg = Expr(:kw, :role, :(:defaut)) #:(role = :default)
260260
reducer = args[1]
261261
loop = args[2]
262262
end

src/managers.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,8 @@ function connect(manager::ClusterManager, pid::Int, config::WorkerConfig)
642642
release(sem)
643643
end
644644
else
645-
(s, bind_addr) = connect_to_worker(#=bind_addr=# pubhost, port)
645+
# (s, bind_addr) = connect_to_worker(#=bind_addr=# pubhost, port)
646+
(s, bind_addr) = connect_to_worker(bind_addr, port)
646647
end
647648

648649
config.bind_addr = bind_addr

0 commit comments

Comments
 (0)