Skip to content

Commit 2f18363

Browse files
authored
Fix doc code snippets (#65)
1 parent c942337 commit 2f18363

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/flame.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ defmodule FLAME do
2626
features, entire function closures, including any state they close over, can be sent
2727
and executed on a remote node:
2828
29-
def resize_video_quality(%Video{} = video) do
29+
def resize_video_quality(%Video{} = vid) do
3030
FLAME.call(MyApp.FFMpegRunner, fn ->
3131
path = "#{vid.id}_720p.mp4"
3232
System.cmd("ffmpeg", ~w(-i #{vid.url} -s 720x480 -c:a copy #{path}))
@@ -60,7 +60,7 @@ defmodule FLAME do
6060
children = [
6161
...,
6262
{FLAME.Pool,
63-
name: App.FFMpegRunner,
63+
name: MyApp.FFMpegRunner,
6464
min: 0,
6565
max: 10,
6666
max_concurrency: 5,
@@ -75,7 +75,7 @@ defmodule FLAME do
7575
7676
Calling a pool is as simple as passing its name to the FLAME functions:
7777
78-
FLAME.call(App.FFMpegRunner, fn -> :operation1 end)
78+
FLAME.call(MyApp.FFMpegRunner, fn -> :operation1 end)
7979
8080
You'll also often want to enable or disable other application services based on whether
8181
your application is being started as child FLAME runner or being run directly.

0 commit comments

Comments
 (0)