aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/fetch
diff options
context:
space:
mode:
authorkimkim <kimkim@yandex-team.ru>2022-02-10 16:49:28 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:28 +0300
commit10807864acf73d00f425a23b442aac2cf34403a8 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/http/fetch
parent13f84424ed9975f6827d9786087c6fe6ea265cda (diff)
downloadydb-10807864acf73d00f425a23b442aac2cf34403a8.tar.gz
Restoring authorship annotation for <kimkim@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/http/fetch')
-rw-r--r--library/cpp/http/fetch/http_socket.cpp8
-rw-r--r--library/cpp/http/fetch/httpzreader.h10
2 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/http/fetch/http_socket.cpp b/library/cpp/http/fetch/http_socket.cpp
index b8261febc9..1524ef04a8 100644
--- a/library/cpp/http/fetch/http_socket.cpp
+++ b/library/cpp/http/fetch/http_socket.cpp
@@ -40,7 +40,7 @@ static int gcry_pthread_mutex_init(void** priv) {
int err = 0;
try {
- TMutex* lock = new TMutex;
+ TMutex* lock = new TMutex;
*priv = lock;
} catch (...) {
err = -1;
@@ -50,19 +50,19 @@ static int gcry_pthread_mutex_init(void** priv) {
}
static int gcry_pthread_mutex_destroy(void** lock) {
- delete static_cast<TMutex*>(*lock);
+ delete static_cast<TMutex*>(*lock);
return 0;
}
static int gcry_pthread_mutex_lock(void** lock) {
- static_cast<TMutex*>(*lock)->Acquire();
+ static_cast<TMutex*>(*lock)->Acquire();
return 0;
}
static int gcry_pthread_mutex_unlock(void** lock) {
- static_cast<TMutex*>(*lock)->Release();
+ static_cast<TMutex*>(*lock)->Release();
return 0;
}
diff --git a/library/cpp/http/fetch/httpzreader.h b/library/cpp/http/fetch/httpzreader.h
index 105102b7d1..68eb00853d 100644
--- a/library/cpp/http/fetch/httpzreader.h
+++ b/library/cpp/http/fetch/httpzreader.h
@@ -279,17 +279,17 @@ protected:
case 0:
return ret;
case ENOMEM:
- ythrow yexception() << "SCompressedHttpReader: not enough memory";
+ ythrow yexception() << "SCompressedHttpReader: not enough memory";
case EINVAL:
ythrow yexception() << "SCompressedHttpReader: zlib error: " << ZMsg();
case ENOTSUP:
- ythrow yexception() << "SCompressedHttpReader: unsupported compression method";
+ ythrow yexception() << "SCompressedHttpReader: unsupported compression method";
case EFAULT:
- ythrow zlib_exception() << "SCompressedHttpReader: " << ZMsg();
+ ythrow zlib_exception() << "SCompressedHttpReader: " << ZMsg();
case E2BIG:
- ythrow zlib_exception() << "SCompressedHttpReader: Content exceeds maximum length";
+ ythrow zlib_exception() << "SCompressedHttpReader: Content exceeds maximum length";
default:
- ythrow yexception() << "SCompressedHttpReader: unknown error";
+ ythrow yexception() << "SCompressedHttpReader: unknown error";
}
}
};