damccull / ravendb_client

2 stars 0 forks source link

Topology update should be stored immediately but instead must wait until next call to get_server_address #10

Open damccull opened 2 years ago

damccull commented 2 years ago

Tokio spawned tasks can't borrow self because they may cross threads. This means a direct update from inside the task is impossible. However, awaiting the task's completion means we block the thread, causing problems for the other requests.

This might require another message type to allow the updating of the topology as a kind of callback.