Skip to content

Commit

Permalink
Make sendto accept range
Browse files Browse the repository at this point in the history
  • Loading branch information
baggepinnen authored Feb 14, 2018
1 parent 2812130 commit 6f730cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ParallelDataTransfer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module ParallelDataTransfer
end
end

function passobj(src::Int, target::Vector{Int}, nm::Symbol;
function passobj(src::Int, target::AbstractVector{Int}, nm::Symbol;
from_mod=Main, to_mod=Main)
r = RemoteChannel(src)
@spawnat(src, put!(r, getfield(from_mod, nm)))
Expand Down Expand Up @@ -58,7 +58,7 @@ module ParallelDataTransfer
end
end

function sendto(ps::Vector{Int}; args...)
function sendto(ps::AbstractVector{Int}; args...)
for p in ps
sendto(p; args...)
end
Expand Down

0 comments on commit 6f730cc

Please sign in to comment.