diff options
author | Tim Schumacher <timschumi@gmx.de> | 2022-12-11 18:27:30 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-12 14:16:42 +0100 |
commit | 6c7c5a6786f5f168b9e228f9d4b41ed1e64bc8f3 (patch) | |
tree | 327b04fb4820758e4d8cc60d30bd849d7b3511eb /Userland/Libraries/LibWebSocket | |
parent | ed4c2f2f8ea59295edceca77bf308df5de6872d6 (diff) | |
download | serenity-6c7c5a6786f5f168b9e228f9d4b41ed1e64bc8f3.zip |
LibCore: Rename `Stream::*_or_error` to `*_entire_buffer`
All of our functions are `_or_error` (or are about to be), and maybe
making it less reminiscient of AK::Stream will make people use it more.
Diffstat (limited to 'Userland/Libraries/LibWebSocket')
-rw-r--r-- | Userland/Libraries/LibWebSocket/Impl/WebSocketImplSerenity.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWebSocket/Impl/WebSocketImplSerenity.cpp b/Userland/Libraries/LibWebSocket/Impl/WebSocketImplSerenity.cpp index 0f2004a336..42ea661c71 100644 --- a/Userland/Libraries/LibWebSocket/Impl/WebSocketImplSerenity.cpp +++ b/Userland/Libraries/LibWebSocket/Impl/WebSocketImplSerenity.cpp @@ -21,7 +21,7 @@ bool WebSocketImplSerenity::can_read_line() bool WebSocketImplSerenity::send(ReadonlyBytes bytes) { - return m_socket->write_or_error(bytes); + return m_socket->write_entire_buffer(bytes); } bool WebSocketImplSerenity::eof() |