Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 16, 2025
1 parent fe4edae commit 139e0dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/otaclient_iot_logging_server/v1/servicer.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async def put_log(self, request: PutLogRequest) -> PutLogResponse:
logging stream for uploading.
"""
_ecu_id = request.ecu_id
_timestamp=int(time.time()) * 1000, # milliseconds
_timestamp = (int(time.time()) * 1000,) # milliseconds
_message = request.message
# don't allow empty message request
if not _message:
Expand Down
1 change: 1 addition & 0 deletions src/otaclient_iot_logging_server/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class LogType(EnumWrapper):
LOG = pb2.LOG
METRICS = pb2.METRICS


class ErrorCode(EnumWrapper):
NO_FAILURE = pb2.NO_FAILURE
SERVER_QUEUE_FULL = pb2.SERVER_QUEUE_FULL
Expand Down

0 comments on commit 139e0dc

Please sign in to comment.