From 134a4083953270e8a11430395357fb70a29047ad Mon Sep 17 00:00:00 2001 From: "clang-format-7.0.1" Date: Fri, 26 Jul 2019 18:20:35 -0400 Subject: SERVER-41772 Apply clang-format 7.0.1 to the codebase --- src/mongo/util/net/sock.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mongo/util/net/sock.cpp') diff --git a/src/mongo/util/net/sock.cpp b/src/mongo/util/net/sock.cpp index bb616b4452e..b0d04d1a8c2 100644 --- a/src/mongo/util/net/sock.cpp +++ b/src/mongo/util/net/sock.cpp @@ -120,8 +120,8 @@ void setSockTimeouts(int sock, double secs) { log() << "unable to set SO_RCVTIMEO: " << errnoWithDescription(WSAGetLastError()); status = setsockopt(sock, SOL_SOCKET, SO_SNDTIMEO, reinterpret_cast(&timeout), sizeof(DWORD)); - DEV if (report && (status == SOCKET_ERROR)) log() << "unable to set SO_SNDTIMEO: " - << errnoWithDescription(WSAGetLastError()); + DEV if (report && (status == SOCKET_ERROR)) log() + << "unable to set SO_SNDTIMEO: " << errnoWithDescription(WSAGetLastError()); #else struct timeval tv; tv.tv_sec = (int)secs; @@ -547,7 +547,7 @@ void Socket::handleSendError(int ret, const char* context) { << ' ' << remoteString(); throwSocketError(SocketErrorKind::SEND_ERROR, remoteString()); } -} +} // namespace mongo void Socket::handleRecvError(int ret, int len) { if (ret == 0) { -- cgit v1.2.1