Skip to content

Commit 39ff86c

Browse files
committed
Indent lists
1 parent 12fdd8e commit 39ff86c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/elixir/pages/anti-patterns/process-anti-patterns.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,11 @@ GenServer.cast(pid, {:report_ip_address, conn})
223223

224224
This anti-pattern has many potential remedies:
225225

226-
* Limit the data you send to the absolute necessary minimum instead of sending an entire struct. For example, don't send an entire `conn` struct if all you need is a couple of fields.
227-
* If the only process that needs data is the one you are sending to, consider making the process fetch that data instead of passing it.
228-
* Some abstractions, such as [`:persistent_term`](https://www.erlang.org/doc/man/persistent_term.html), allows you to share data between processes, as long as such data changes infrequently.
226+
* Limit the data you send to the absolute necessary minimum instead of sending an entire struct. For example, don't send an entire `conn` struct if all you need is a couple of fields.
227+
228+
* If the only process that needs data is the one you are sending to, consider making the process fetch that data instead of passing it.
229+
230+
* Some abstractions, such as [`:persistent_term`](https://www.erlang.org/doc/man/persistent_term.html), allows you to share data between processes, as long as such data changes infrequently.
229231

230232
In our case, limiting the input data is a reasonable strategy. If all we need *right now* is the IP address, then let's only work with that and make sure we're only passing the IP address into the closure, like so:
231233

0 commit comments

Comments
 (0)