"vscode:/vscode.git/clone" did not exist on "4b4fc8754e8bfbeefb601b2bb818ce311145008c"
Unverified Commit e512f76a authored by XiaobingZhang's avatar XiaobingZhang Committed by GitHub
Browse files

fix init error for MessageQueue when n_local_reader is zero (#11768)

parent 898cdf03
...@@ -247,7 +247,8 @@ class MessageQueue: ...@@ -247,7 +247,8 @@ class MessageQueue:
self.handle = Handle( self.handle = Handle(
connect_ip=connect_ip, connect_ip=connect_ip,
local_reader_ranks=local_reader_ranks, local_reader_ranks=local_reader_ranks,
buffer_handle=self.buffer.handle(), buffer_handle=self.buffer.handle()
if self.buffer is not None else None,
local_subscribe_port=local_subscribe_port, local_subscribe_port=local_subscribe_port,
remote_subscribe_port=remote_subscribe_port, remote_subscribe_port=remote_subscribe_port,
) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment