Skip to content

Commit 7840435

Browse files
committed
Fix HTTPChannel and HTTPChannelBackend
1 parent 04bd9c5 commit 7840435

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

coagent/core/runtime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ async def _publish_stream(
131131
await self._publish(
132132
addr,
133133
msg,
134-
request=True,
135134
stream=True,
135+
request=True,
136136
reply=inbox,
137137
probe=probe,
138138
)

coagent/runtimes/http_runtime.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ async def _publish_stream(
109109
addr=addr.encode(mode="json"),
110110
msg=msg.encode(mode="json"),
111111
stream=True,
112+
request=True,
112113
probe=probe,
113114
)
114115
headers = {"Authorization": self._auth} if self._auth else None
@@ -274,7 +275,7 @@ async def publish(
274275
reply: str = "",
275276
timeout: float = 5.0,
276277
probe: bool = True,
277-
) -> RawMessage | None:
278+
) -> AsyncIterator[RawMessage] | RawMessage | None:
278279
return await self._channel.publish(
279280
addr,
280281
msg,

0 commit comments

Comments
 (0)