File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ const D3R_ACTUAL_PORT = Dict{Int,Int}()
5757# TODO : Concrete socket types
5858const D3R_CLIENT_SOCKETS = Dict {Int,Dict{Int,Vector{Any}}} ()
5959
60- const D3R_WORKER_HOST_MAP = Dict {Int,IPAddr} ()
60+ const D3R_WORKER_HOST_MAP = Dict {Int,Union{ IPAddr,String} } ()
6161const D3R_WORKER_PORT_MAP = Dict {Int,Int} ()
6262
6363struct D3Renderer
311311function worker_host_port (id:: Int , port:: Int , port_range:: UnitRange )
312312 worker_host = get! (D3R_WORKER_HOST_MAP, port) do
313313 worker_host, worker_port = remotecall_fetch (id, port) do port
314- (MemPool. host, get_actual_port (port, port_range))
314+ host = gethostname ()
315+ if isempty (host)
316+ host = getipaddr ()
317+ end
318+ (host, get_actual_port (port, port_range))
315319 end
316320 D3R_WORKER_PORT_MAP[port] = worker_port
317321 worker_host
You can’t perform that action at this time.
0 commit comments