Skip to content

Commit

Permalink
更改描述
Browse files Browse the repository at this point in the history
  • Loading branch information
Bronya0 committed Aug 16, 2024
1 parent e950973 commit 6c8327d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions service/kafka_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,14 +216,14 @@ def fetch_msgs(self, topic, group_id, size=10, timeout=10):
for tp, records in res.items():
for record in records:
try:
msgs += "{}. 偏移量:{}, 分区号:{}, 键:{}, 消息内容:{}\n".format(
msgs += "{}. 偏移:{}, 分区:{}, 键:{}, 内容:{}\n".format(
n, record.offset,
record.partition,
record.key.decode('utf-8') if record.key is not None else "",
record.value.decode('utf-8') if record.value is not None else ""
)
except:
msgs += "{}. 偏移量:{}, 分区号:{}, 键:{}, 消息内容:{}\n".format(
msgs += "{}. 偏移:{}, 分区:{}, 键:{}, 内容:{}\n".format(
n, record.offset,
record.partition,
record.key,
Expand Down
8 changes: 4 additions & 4 deletions views/topic.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,27 +226,27 @@ def init_table(self):
controls=[
ft.MenuItemButton(
data=topic_name_,
content=ft.Text("生产"),
content=ft.Text("生产消息"),
on_click=self.show_produce_page,
disabled=disabled,
),
ft.MenuItemButton(
data=topic_name_,
content=ft.Text("消费"),
content=ft.Text("消费/查看消息"),
on_click=self.show_consumer_page,
disabled=disabled,

),
ft.MenuItemButton(
data=topic_name_,
content=ft.Text("配置", color="brown"),
content=ft.Text("查看配置", color="brown"),
on_click=self.show_config_tab,
disabled=disabled,

),
ft.MenuItemButton(
data=topic_name_,
content=ft.Text("删除", color="red"),
content=ft.Text("删除topic", color="red"),
on_click=self.open_delete_dialog,
disabled=disabled,

Expand Down

0 comments on commit 6c8327d

Please sign in to comment.