Skip to content

Commit c0ee918

Browse files
committed
fix: docs
Signed-off-by: Lei, HUANG <[email protected]>
1 parent 4c6c27a commit c0ee918

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/common/grpc/src/flight/do_put.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,39 +21,39 @@ use crate::error::{Error, SerdeJsonSnafu};
2121

2222
/// The metadata for "DoPut" requests and responses.
2323
///
24-
/// Currently, there's only a "request_id", for coordinating requests and responses in the streams.
24+
/// Currently, there's a "request_id", for coordinating requests and responses in the streams.
2525
/// Client can set a unique request id in this metadata, and the server will return the same id in
2626
/// the corresponding response. In doing so, a client can know how to do with its pending requests.
2727
#[derive(Serialize, Deserialize)]
2828
pub struct DoPutMetadata {
2929
request_id: i64,
30-
/// Start timestamp of the batch in nanoseconds (optional, for time-windowed batches)
30+
/// Min timestamp of the batch (optional, for time-windowed batches)
3131
#[serde(skip_serializing_if = "Option::is_none")]
32-
start_timestamp: Option<i64>,
33-
/// End timestamp of the batch in nanoseconds (optional, for time-windowed batches)
32+
min_timestamp: Option<i64>,
33+
/// Max timestamp of the batch (optional, for time-windowed batches)
3434
#[serde(skip_serializing_if = "Option::is_none")]
35-
end_timestamp: Option<i64>,
35+
max_timestamp: Option<i64>,
3636
}
3737

3838
impl DoPutMetadata {
3939
pub fn new(request_id: i64) -> Self {
4040
Self {
4141
request_id,
42-
start_timestamp: None,
43-
end_timestamp: None,
42+
min_timestamp: None,
43+
max_timestamp: None,
4444
}
4545
}
4646

4747
pub fn request_id(&self) -> i64 {
4848
self.request_id
4949
}
5050

51-
pub fn start_timestamp(&self) -> Option<i64> {
52-
self.start_timestamp
51+
pub fn min_timestamp(&self) -> Option<i64> {
52+
self.min_timestamp
5353
}
5454

55-
pub fn end_timestamp(&self) -> Option<i64> {
56-
self.end_timestamp
55+
pub fn max_timestamp(&self) -> Option<i64> {
56+
self.max_timestamp
5757
}
5858
}
5959

0 commit comments

Comments
 (0)