NexusSocial / nexus-vr

Monorepo for most code
Apache License 2.0
18 stars 7 forks source link

Pool connections using bb8 #115

Open SafariMonkey opened 3 weeks ago

SafariMonkey commented 3 weeks ago

Moves from an async worker (bad abstraction) to a connection pool.

bb8 does not have an obvious way to kill connections involved in a panic, so as a (hopefully temporary) workaround, a wrapper is used that checks for panics on drop and, if so, replaces the connection with a None before it is returned to the pool, at which point it is identified as dead via has_broken.

Draft as it compiles but is not yet tested.