99
99
/// incoming.
100
100
///
101
101
/// `updates` may be empty, which allows for downgrading `upper` to
102
- /// communicate progress. It is unexpected to call this with `new_upper`
103
- /// equal to `self.upper()`, as it would mean `updates` must be empty
104
- /// (making the entire call a no-op).
102
+ /// communicate progress. It is possible to heartbeat a writer lease by
103
+ /// calling this with `new_upper` equal to `self.upper()` and an empty
104
+ /// `updates` (making the call a no-op).
105
105
///
106
106
/// This uses a bounded amount of memory, even when `updates` is very large.
107
107
/// Individual records, however, should be small enough that we can
@@ -157,7 +157,8 @@ where
157
157
}
158
158
159
159
/// Applies `updates` to this shard and downgrades this handle's upper to
160
- /// `new_upper` iff the current global upper of this shard is `expected_upper`.
160
+ /// `new_upper` iff the current global upper of this shard is
161
+ /// `expected_upper`.
161
162
///
162
163
/// The innermost `Result` is `Ok` if the updates were successfully written.
163
164
/// If not, an `Err` containing the current global upper is returned.
@@ -172,9 +173,9 @@ where
172
173
/// incoming.
173
174
///
174
175
/// `updates` may be empty, which allows for downgrading `upper` to
175
- /// communicate progress. It is unexpected to call this with `new_upper`
176
- /// equal to `self.upper()`, as it would mean `updates` must be empty
177
- /// (making the entire call a no-op).
176
+ /// communicate progress. It is possible to heartbeat a writer lease by
177
+ /// calling this with `new_upper` equal to `self.upper()` and an empty
178
+ /// `updates` (making the call a no-op).
178
179
///
179
180
/// This uses a bounded amount of memory, even when `updates` is very large.
180
181
/// Individual records, however, should be small enough that we can
0 commit comments