The caller-supplied observation time. The server NEVER substitutes its own clock for observation times — `now` rides the request exactly like the legacy protocol's explicit `now` field.
(meta: &Option<RequestMeta>)
| 156 | /// own clock for observation times — `now` rides the request exactly like |
| 157 | /// the legacy protocol's explicit `now` field. |
| 158 | fn observed_now(meta: &Option<RequestMeta>) -> i64 { |
| 159 | meta.as_ref() |
| 160 | .and_then(|meta| meta.observed_at.as_ref()) |
| 161 | .map(|stamp| stamp.seconds) |
| 162 | .unwrap_or(0) |
| 163 | } |
| 164 | |
| 165 | fn timestamp(seconds: i64) -> prost_types::Timestamp { |
| 166 | prost_types::Timestamp { seconds, nanos: 0 } |
no test coverage detected