Skip to content

Commit 148ae10

Browse files
Only restart shards if they terminate unexpectedly (#195)
1 parent 8b92e8f commit 148ae10

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/phoenix/tracker.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,8 @@ defmodule Phoenix.Tracker do
327327

328328
%{
329329
id: shard_name,
330-
start: {Phoenix.Tracker.Shard, :start_link, [tracker, tracker_opts, shard_opts]}
330+
start: {Phoenix.Tracker.Shard, :start_link, [tracker, tracker_opts, shard_opts]},
331+
restart: :transient
331332
}
332333
end
333334

0 commit comments

Comments
 (0)