Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
merqlove committed Jul 27, 2016
1 parent e46fce3 commit 20c1192
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/redix/pubsub/fastlane.ex
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ defmodule Redix.PubSub.Fastlane do
{:ok, _pubsub} = Redix.PubSub.Fastlane.start_link(MyApp.PubSub.Redis)
Redix.PubSub.Fastlane.subscribe(MyApp.PubSub.Redis, "my_channel", {pid, My.Fastlane, [:some_id]})
#=> :ok
After a subscription, messages published to a channel are delivered `My.Fastlane.fastlane/2`,
After a subscription, messages published to a channel are delivered `My.Fastlane.fastlane/3`,
as it subscribed to that channel via `Redix.PubSub.Fastlane`:
Redix.PubSub.Fastlane.publish(MyApp.PubSub.Redis, "my_channel", "hello")
#=> :ok
Expand All @@ -73,7 +73,7 @@ defmodule Redix.PubSub.Fastlane do
Redix.PubSub.Fastlane.subscribe(MyApp.PubSub.Redis, "channel1", {pid, My.Fastlane, ["some_id"]})
If you provide it, the fastlane handler is notified of a cached message instead of the normal subscriber.
Fastlane handlers must implement `fastlane/2` callbacks which accepts similar format:
Fastlane handlers must implement `fastlane/3` callbacks which accepts similar format:
def fastlane(%{channel: channel, payload: payload}, [:some_id])
Expand Down

0 comments on commit 20c1192

Please sign in to comment.