mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Remove now unnecessary idleTimeout opt from socket upgrades
This commit is contained in:
parent
decb3ac618
commit
3f9f0468d2
2 changed files with 2 additions and 2 deletions
|
|
@ -83,7 +83,7 @@ const streamingController: AppController = async (c) => {
|
|||
}
|
||||
}
|
||||
|
||||
const { socket, response } = Deno.upgradeWebSocket(c.req.raw, { protocol: token, idleTimeout: 30 });
|
||||
const { socket, response } = Deno.upgradeWebSocket(c.req.raw, { protocol: token });
|
||||
|
||||
const pubkey = await user?.signer.getPublicKey();
|
||||
const policy = pubkey ? new MuteListPolicy(pubkey, relay) : undefined;
|
||||
|
|
|
|||
|
|
@ -213,7 +213,7 @@ const relayController: AppController = (c, next) => {
|
|||
ip = undefined;
|
||||
}
|
||||
|
||||
const { socket, response } = Deno.upgradeWebSocket(c.req.raw, { idleTimeout: 30 });
|
||||
const { socket, response } = Deno.upgradeWebSocket(c.req.raw);
|
||||
connectStream(conf, relay as DittoPgStore, socket, ip);
|
||||
|
||||
return response;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue