team-telnyx / etcdex

Etcd client in Elixir
Apache License 2.0
13 stars 0 forks source link

Send message to client process when watches fail to reconnect #4

Closed szajbus closed 1 year ago

szajbus commented 1 year ago

When etcd connection is reestablished after a disconnect, it attempts to also reconnect previously created watches. However when it fails, the client process is not aware of it.

This PR fixes it by sending generic {:etcd_watch_error, reason} message to the client process.