From 0acf8a66181624e11ec83a0e4031eb8c2facc9d2 Mon Sep 17 00:00:00 2001 From: Ryan Russell Date: Fri, 8 Jul 2022 18:04:32 -0500 Subject: [PATCH] refactor(websockets): Rename `connectedWebSocketContext()` Signed-off-by: Ryan Russell --- src/bun.js/bindings/ScriptExecutionContext.h | 2 +- src/bun.js/bindings/webcore/WebSocket.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bun.js/bindings/ScriptExecutionContext.h b/src/bun.js/bindings/ScriptExecutionContext.h index 227c57e6a1..ab86b68168 100644 --- a/src/bun.js/bindings/ScriptExecutionContext.h +++ b/src/bun.js/bindings/ScriptExecutionContext.h @@ -145,7 +145,7 @@ private: public: template - us_socket_context_t* connnectedWebSocketContext() + us_socket_context_t* connectedWebSocketContext() { if constexpr (isSSL) { if (!m_connected_ssl_client_websockets_ctx) { diff --git a/src/bun.js/bindings/webcore/WebSocket.cpp b/src/bun.js/bindings/webcore/WebSocket.cpp index 763668056d..a21560b2c3 100644 --- a/src/bun.js/bindings/webcore/WebSocket.cpp +++ b/src/bun.js/bindings/webcore/WebSocket.cpp @@ -909,11 +909,11 @@ void WebSocket::didConnect(us_socket_t* socket, char* bufferedData, size_t buffe { this->m_upgradeClient = nullptr; if (m_isSecure) { - us_socket_context_t* ctx = (us_socket_context_t*)this->scriptExecutionContext()->connnectedWebSocketContext(); + us_socket_context_t* ctx = (us_socket_context_t*)this->scriptExecutionContext()->connectedWebSocketContext(); this->m_connectedWebSocket.clientSSL = Bun__WebSocketClientTLS__init(this, socket, ctx, this->scriptExecutionContext()->jsGlobalObject()); this->m_connectedWebSocketKind = ConnectedWebSocketKind::ClientSSL; } else { - us_socket_context_t* ctx = (us_socket_context_t*)this->scriptExecutionContext()->connnectedWebSocketContext(); + us_socket_context_t* ctx = (us_socket_context_t*)this->scriptExecutionContext()->connectedWebSocketContext(); this->m_connectedWebSocket.client = Bun__WebSocketClient__init(this, socket, ctx, this->scriptExecutionContext()->jsGlobalObject()); this->m_connectedWebSocketKind = ConnectedWebSocketKind::Client; }