relay: fix invoking federator, use a timer to sleep the mix task to force a context switch
This commit is contained in:
parent
99be3d3dcc
commit
266b314051
3 changed files with 6 additions and 2 deletions
|
|
@ -8,5 +8,8 @@ defmodule Mix.Tasks.RelayFollow do
|
|||
Mix.Task.run("app.start")
|
||||
|
||||
:ok = Relay.follow(target)
|
||||
|
||||
# put this task to sleep to allow the genserver to push out the messages
|
||||
:timer.sleep(500)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -8,5 +8,8 @@ defmodule Mix.Tasks.RelayUnfollow do
|
|||
Mix.Task.run("app.start")
|
||||
|
||||
:ok = Relay.unfollow(target)
|
||||
|
||||
# put this task to sleep to allow the genserver to push out the messages
|
||||
:timer.sleep(500)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue