diff options
author | rinpatch <rinpatch@sdf.org> | 2020-07-15 15:58:08 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-07-15 15:58:08 +0300 |
commit | 7115c5f82efe1ca1817da3152ba3cbc66e0da1a4 (patch) | |
tree | e70ff385ef10cc06ae5121c7358ac056c0d19692 /lib/pleroma/gun/connection_pool | |
parent | 6d583bcc3b23c0c16aefa3f34155e7e15b745b01 (diff) | |
download | pleroma-7115c5f82efe1ca1817da3152ba3cbc66e0da1a4.tar.gz |
ConnectionPool.Worker: do not stop with an error when there is a timeout
This produced error log messages about GenServer termination
every time the connection was not open due to a timeout.
Instead we stop with `{:shutdown, <gun_error>}` since shutting down
when the connection can't be established is normal behavior.
Diffstat (limited to 'lib/pleroma/gun/connection_pool')
-rw-r--r-- | lib/pleroma/gun/connection_pool/worker.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/gun/connection_pool/worker.ex b/lib/pleroma/gun/connection_pool/worker.ex index 16a508ad9..f33447cb6 100644 --- a/lib/pleroma/gun/connection_pool/worker.ex +++ b/lib/pleroma/gun/connection_pool/worker.ex @@ -31,7 +31,7 @@ defmodule Pleroma.Gun.ConnectionPool.Worker do :hibernate} else err -> - {:stop, err, nil} + {:stop, {:shutdown, err}, nil} end end |