Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
FastHTML
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pleroma
Elixir libraries
FastHTML
Commits
5232a09d
Commit
5232a09d
authored
3 years ago
by
Andy LeClair
Browse files
Options
Downloads
Patches
Plain Diff
update nimblepool to 0.2, update associated callbacks
parent
fc1d67c8
No related branches found
No related tags found
1 merge request
!18
update nimblepool to 0.2, update associated callbacks
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/fast_html/pool.ex
+4
-4
4 additions, 4 deletions
lib/fast_html/pool.ex
mix.exs
+1
-1
1 addition, 1 deletion
mix.exs
mix.lock
+1
-1
1 addition, 1 deletion
mix.lock
with
6 additions
and
6 deletions
lib/fast_html/pool.ex
+
4
−
4
View file @
5232a09d
...
...
@@ -98,22 +98,22 @@ defmodule FastHtml.Pool do
@impl
NimblePool
@doc
false
def
handle_checkout
(
:checkout
,
{
client_pid
,
_
},
port
)
do
def
handle_checkout
(
:checkout
,
{
client_pid
,
_
},
port
,
pool_state
)
do
send
(
port
,
{
self
(),
{
:connect
,
client_pid
}})
receive
do
{
^
port
,
:connected
}
->
{
:ok
,
port
,
port
}
{
^
port
,
:connected
}
->
{
:ok
,
port
,
port
,
pool_state
}
{
:EXIT
,
^
port
,
reason
}
->
{
:remove
,
{
:EXIT
,
reason
}}
end
end
@impl
NimblePool
@doc
false
def
handle_checkin
(
:timeout
,
_
,
_
),
do
:
{
:remove
,
:timeout
}
def
handle_checkin
(
:timeout
,
_
,
_
,
pool_state
),
do
:
{
:remove
,
:timeout
,
pool_state
}
@impl
NimblePool
@doc
false
def
handle_checkin
(
_
,
_
,
port
),
do
:
{
:ok
,
port
}
def
handle_checkin
(
_
,
_
,
port
,
pool_state
),
do
:
{
:ok
,
port
,
pool_state
}
@impl
NimblePool
@doc
false
...
...
This diff is collapsed.
Click to expand it.
mix.exs
+
1
−
1
View file @
5232a09d
...
...
@@ -55,7 +55,7 @@ defmodule FastHtml.Mixfile do
{
:mochiweb
,
"~> 2.18"
,
only:
:bench
,
optional:
true
},
{
:html5ever
,
git:
"https://github.com/rusterlium/html5ever_elixir.git"
,
only:
:bench
,
optional:
true
},
{
:nimble_pool
,
"~> 0.
1
.0"
},
{
:nimble_pool
,
"~> 0.
2
.0"
},
{
:elixir_make
,
"~> 0.4"
,
runtime:
false
}
]
end
...
...
This diff is collapsed.
Click to expand it.
mix.lock
+
1
−
1
View file @
5232a09d
...
...
@@ -13,7 +13,7 @@
"myhtml": {:git, "https://github.com/lexborisov/myhtml.git", "fe2cf577570666d058a2b7167c26d3384a758e19", [branch: "master"]},
"myhtmlex": {:hex, :myhtmlex, "0.2.1", "d6f3eb1826f7cdaa0225a996569da0930d1a334405510845c905ae59295ab226", [:make, :mix], [{:nodex, "~> 0.1.1", [hex: :nodex, repo: "hexpm", optional: false]}], "hexpm", "1c22e79731cc492365279d111fcaf7f4f17ca845d2b9660d2285b91c56cbd1c2"},
"nimble_parsec": {:hex, :nimble_parsec, "0.5.1", "c90796ecee0289dbb5ad16d3ad06f957b0cd1199769641c961cfe0b97db190e0", [:mix], [], "hexpm", "00e3ebdc821fb3a36957320d49e8f4bfa310d73ea31c90e5f925dc75e030da8f"},
"nimble_pool": {:hex, :nimble_pool, "0.
1.0
", "
ffa9d5be27eee2b00b0c634eb649aa27f97b39186fec3c493716c2a33e784ec6", [:mix], [], "hexpm", "343a1eaa620ddcf3430a83f39f2af499fe2370390d4f785cd475b4df5acaf3f9
"},
"nimble_pool": {:hex, :nimble_pool, "0.
2.4
", "
1db8e9f8a53d967d595e0b32a17030cdb6c0dc4a451b8ac787bf601d3f7704c3", [:mix], [], "hexpm", "367e8071e137b787764e6a9992ccb57b276dc2282535f767a07d881951ebeac6
"},
"nodex": {:hex, :nodex, "0.1.1", "ed2f7bbe19ea62a43ad4b7ad332eb3f9ca12c64a35a5802a0eb545b93ebe32af", [:mix], [], "hexpm", "0e6804b0138a71e33e99a2e6423019db01de34fe341f765220bce38830779548"},
"rustler": {:hex, :rustler, "0.21.1", "5299980be32da997c54382e945bacaa015ed97a60745e1e639beaf6a7b278c65", [:mix], [{:toml, "~> 0.5.2", [hex: :toml, repo: "hexpm", optional: false]}], "hexpm", "6ee1651e10645b2b2f3bb70502bf180341aa058709177e9bc28c105934094bc6"},
"toml": {:hex, :toml, "0.5.2", "e471388a8726d1ce51a6b32f864b8228a1eb8edc907a0edf2bb50eab9321b526", [:mix], [], "hexpm", "f1e3dabef71fb510d015fad18c0e05e7c57281001141504c6b69d94e99750a07"},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment