Skip to content

Commit

Permalink
Update eetcd version to 0.4.0 with a migration notes
Browse files Browse the repository at this point in the history
  • Loading branch information
belltoy committed Mar 18, 2023
1 parent 5651283 commit 2875e6e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,3 +289,24 @@ Gen proto and client file
```erlang
rebar3 etcd gen
```

Migration from eetcd 0.3.6 to 0.4.x
-----

eetcd 0.4.x now dependents on Gun 2.0, which introduced some breaking changes,
and propagate to eetcd.

The transport options are split into `tcp_opts` and `tls_opts`. As a result the
functions `eetcd:open/4,5` have been replaced with `eetcd:open/5,6`.

Likewise, the transport options for `eetcd_maintenance` APIs are split into
`tcp_opts` and `tls_opts` as well.

- The function `eetcd_maintenance:defragment/3` has been replaced with `eetcd_maintenance:defragment/4`.
- The function `eetcd_maintenance:status/3` has been replaced with `eetcd_maintenance:status/4`.
- The function `eetcd_maintenance:has_kv/4` has been replaced with `eetcd_maintenance:has_kv/5`.

New options `{domain_lookup_timeout, Interval}` and `{tls_handshake_timeout, Interval}`
have been added for `eetcd:open/5,6`. Alone with the prior `{connect_timeout, Interval}`,
it allows the underlining Gun library to get separate events when connecting,
the domain lookup, connection and TLS handshakes.
2 changes: 1 addition & 1 deletion src/eetcd.app.src
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{application, eetcd,
[
{description, "ETCD V3 client"},
{vsn, "0.3.6"},
{vsn, "0.4.0"},
{registered, [eetcd_sup, eetcd_conn_sup, eetcd_lease_sup]},
{mod, {eetcd_app, []}},
{applications, [kernel, stdlib, gun]},
Expand Down

0 comments on commit 2875e6e

Please sign in to comment.