ConnectionPool.Worker: do not stop with an error when there is a timeout
authorrinpatch <rinpatch@sdf.org>
Wed, 15 Jul 2020 12:58:08 +0000 (15:58 +0300)
committerrinpatch <rinpatch@sdf.org>
Wed, 15 Jul 2020 12:58:08 +0000 (15:58 +0300)
commit7115c5f82efe1ca1817da3152ba3cbc66e0da1a4
treee70ff385ef10cc06ae5121c7358ac056c0d19692
parent6d583bcc3b23c0c16aefa3f34155e7e15b745b01
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.
lib/pleroma/gun/connection_pool.ex
lib/pleroma/gun/connection_pool/worker.ex