Skip to content

Commit 35a095d

Browse files
committed
Distributed -> DistributedNext
1 parent 7bb2144 commit 35a095d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/persistent_workers.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ include("testhelpers/PersistentWorkers.jl")
22
using .PersistentWorkers
33
using Test
44
using Random
5-
using Distributed
5+
using DistributedNext
66

77
@testset "PersistentWorkers.jl" begin
88
cookie = randstring(16)

test/testhelpers/PersistentWorkers.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
module PersistentWorkers
22

3-
using Distributed: Distributed, ClusterManager, WorkerConfig, worker_from_id, set_worker_state, W_TERMINATED
3+
using DistributedNext: DistributedNext, ClusterManager, WorkerConfig, worker_from_id, set_worker_state, W_TERMINATED
44
using Sockets: InetAddr, localhost
55

66
export PersistentWorkerManager, start_worker_loop
77

8-
struct PersistentWorkerManager{IP} <: Distributed.ClusterManager
8+
struct PersistentWorkerManager{IP} <: ClusterManager
99
addr::InetAddr{IP}
1010
end
1111

1212
PersistentWorkerManager(host, port::Integer) = PersistentWorkerManager(InetAddr(host, port))
1313
PersistentWorkerManager(port::Integer) = PersistentWorkerManager(localhost, port)
1414

15-
function Distributed.launch(cm::PersistentWorkerManager, ::Dict, launched::Array, launch_ntfy::Base.GenericCondition{Base.AlwaysLockedST})
15+
function DistributedNext.launch(cm::PersistentWorkerManager, ::Dict, launched::Array, launch_ntfy::Base.GenericCondition{Base.AlwaysLockedST})
1616
(; host, port) = cm.addr
1717
wc = WorkerConfig()
1818
wc.io = nothing
@@ -24,7 +24,7 @@ function Distributed.launch(cm::PersistentWorkerManager, ::Dict, launched::Array
2424
return nothing
2525
end
2626

27-
function Distributed.manage(::PersistentWorkerManager, ::Int, ::WorkerConfig, ::Symbol) end
27+
function DistributedNext.manage(::PersistentWorkerManager, ::Int, ::WorkerConfig, ::Symbol) end
2828

2929
# don't actually kill the worker, just close the streams
3030
function Base.kill(::PersistentWorkerManager, pid::Int, ::WorkerConfig)
@@ -35,7 +35,7 @@ function Base.kill(::PersistentWorkerManager, pid::Int, ::WorkerConfig)
3535
return nothing
3636
end
3737

38-
using Distributed: LPROC, init_worker, process_messages, cluster_cookie
38+
using DistributedNext: LPROC, init_worker, process_messages, cluster_cookie
3939
using Sockets: IPAddr, listen, listenany, accept
4040

4141
function start_worker_loop(host::IPAddr, port::Union{Nothing, Integer}; cluster_cookie=cluster_cookie())

0 commit comments

Comments
 (0)