khonsulabs / bonsaidb

A developer-friendly document database that grows with you, written in Rust
https://bonsaidb.io/
Apache License 2.0
1.03k stars 37 forks source link

`ConnectedClient` needs a way to check if its disconnected #271

Closed ecton closed 1 year ago

ecton commented 1 year ago

Because ConnectedClients can be cloned and live outside of the BonsaiDb server, there should be a way for a ConnectedClient holder to know if the client is actually still connected.

We should also check that we are testing the behavior of trying to call various ConnectedClient functions with a disconnected client. Any functions that could return a disconnected error should.