Skip to content

Commit

Permalink
python_build.yml run-on ubuntu-22.04
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouli committed Dec 30, 2024
1 parent 99766c9 commit fc4f509
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/python_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
jobs:
flake8:
name: flake8
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -17,7 +17,7 @@ jobs:
run: |
flake8 --ignore=E501,W503 --exclude python/rocketmq/grpc_protocol python
isort:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -30,7 +30,7 @@ jobs:
run: |
isort --check --diff --skip python/rocketmq/grpc_protocol python
black:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
5 changes: 1 addition & 4 deletions python/rocketmq/v5/util/message_id_codec.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,7 @@ def next_message_id(self):

@staticmethod
def decode(message_id):
if len(message_id) != MessageIdCodec.MESSAGE_ID_LENGTH_FOR_V1_OR_LATER:
return MessageIdCodec.MESSAGE_ID_VERSION_V0 + message_id
else:
return message_id
return message_id

""" private """

Expand Down

0 comments on commit fc4f509

Please sign in to comment.