Skip to content

Commit

Permalink
Update Lease.md
Browse files Browse the repository at this point in the history
  • Loading branch information
thinh2 authored and lburgazzoli committed Apr 18, 2023
1 parent 275aea1 commit 0790996
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/Lease.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ The Lease interface provides methods to grant, revoke, and keepalive leases.
1. This function is called periodically by `keepAliveSchedule`.
2. The lease may expire as:
* The etcd respond overtime.
* The client faile to send request in time.
* The client fails to send request in time.
3. It will scan the keepAlives map and find the leases that requires keepAlive requests to send based on its nextKeepAliveTime.
4. Send request to the StreamObserver for these leases.

Expand All @@ -66,4 +66,4 @@ The Lease interface provides methods to grant, revoke, and keepalive leases.

1. The StreamObserver is the stream etcd uses to send responses.
2. The gRPC client calls onNext when etcd server delivers a response.
3. The onNext function will call `processKeepAliveRespond`.
3. The onNext function will call `processKeepAliveRespond`.

0 comments on commit 0790996

Please sign in to comment.