From ede30654fa05f2edcbd32729adc1d9988d1a0fee Mon Sep 17 00:00:00 2001 From: Yin Congmin Date: Wed, 6 Sep 2023 16:42:34 +0800 Subject: [PATCH] discovery: update class Connection data type Signed-off-by: Yin Congmin --- control/discovery.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/control/discovery.py b/control/discovery.py index 7d8cd6a2..13606376 100644 --- a/control/discovery.py +++ b/control/discovery.py @@ -121,10 +121,10 @@ class Connection: allow_listeners: list = field(default_factory=list) log_page: bytearray = field(default_factory=bytearray) recv_buffer: bytearray = field(default_factory=bytearray) - nvmeof_connect_data_hostid: str = field(default_factory=str) + nvmeof_connect_data_hostid: tuple = tuple((c_ubyte *16)()) nvmeof_connect_data_cntlid: int = 0 - nvmeof_connect_data_subnqn: str = field(default_factory=str) - nvmeof_connect_data_hostnqn: str = field(default_factory=str) + nvmeof_connect_data_subnqn: tuple = tuple((c_ubyte *256)()) + nvmeof_connect_data_hostnqn: tuple = tuple((c_ubyte *256)()) sq_head_ptr: int = 0 unsent_log_page_len: int = 0 # NVM ExpressTM Revision 1.4, page 47