Create a timestamp protobuf with current time. Returns: Timestamp protobuf set to current time
()
| 413 | |
| 414 | |
| 415 | def create_current_timestamp() -> timestamp_pb2.Timestamp: |
| 416 | """Create a timestamp protobuf with current time. |
| 417 | |
| 418 | Returns: |
| 419 | Timestamp protobuf set to current time |
| 420 | """ |
| 421 | now = timestamp_pb2.Timestamp() |
| 422 | now.GetCurrentTime() |
| 423 | return now |
| 424 | |
| 425 | |
| 426 | def worker_identity_to_proto(identity: WorkerIdentity) -> manager_pb2.WorkerIdentity: |
no outgoing calls
no test coverage detected