refactor: wrap backup error in a tagged effect error
This commit is contained in:
parent
07671dc243
commit
d4469db535
1 changed files with 0 additions and 5 deletions
|
|
@ -106,11 +106,6 @@ export const createControllerSession = (ws: WebSocket): ControllerSession => {
|
|||
});
|
||||
},
|
||||
onMessage: (data) => {
|
||||
if (typeof data !== "string") {
|
||||
logger.warn("Agent received a non-text message");
|
||||
return;
|
||||
}
|
||||
|
||||
void Effect.runPromise(offerInbound(data as ControllerWireMessage)).catch((error) => {
|
||||
logger.error(`Failed to queue inbound message: ${toMessage(error)}`);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue