diff options
author | Ilnur Khuziev <ilnur.khuziev@yandex.ru> | 2022-02-10 16:46:13 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:13 +0300 |
commit | 736dcd8ca259457a136f2f9f9168c44643914323 (patch) | |
tree | ddd46a036d68bfa83aa11b892f31243ea6b068a1 /library/cpp/resource | |
parent | 9bf2fa2b060c9881d3135c2208c624a1dd546ecc (diff) | |
download | ydb-736dcd8ca259457a136f2f9f9168c44643914323.tar.gz |
Restoring authorship annotation for Ilnur Khuziev <ilnur.khuziev@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/resource')
-rw-r--r-- | library/cpp/resource/registry.cpp | 6 | ||||
-rw-r--r-- | library/cpp/resource/resource.cpp | 16 | ||||
-rw-r--r-- | library/cpp/resource/ut/resource_ut.cpp | 2 |
3 files changed, 12 insertions, 12 deletions
diff --git a/library/cpp/resource/registry.cpp b/library/cpp/resource/registry.cpp index 66001c4769..80148601ce 100644 --- a/library/cpp/resource/registry.cpp +++ b/library/cpp/resource/registry.cpp @@ -6,7 +6,7 @@ #include <util/generic/hash.h> #include <util/generic/deque.h> #include <util/generic/singleton.h> -#include <util/system/env.h> +#include <util/system/env.h> using namespace NResource; using namespace NBlockCodecs; @@ -56,7 +56,7 @@ namespace { try { *out = Decompress((*res)->second); } catch (const yexception& e) { - if (GetEnv("RESOURCE_DECOMPRESS_DIAG")) { + if (GetEnv("RESOURCE_DECOMPRESS_DIAG")) { Cerr << "Can't decompress resource " << key << Endl << e.what() << Endl; } throw e; @@ -78,7 +78,7 @@ namespace { it.first, Decompress(it.second->second)}; cb.OnMatch(res); } catch (const yexception& e) { - if (GetEnv("RESOURCE_DECOMPRESS_DIAG")) { + if (GetEnv("RESOURCE_DECOMPRESS_DIAG")) { Cerr << "Can't decompress resource " << it.first << Endl << e.what() << Endl; } throw e; diff --git a/library/cpp/resource/resource.cpp b/library/cpp/resource/resource.cpp index cc20f847a5..b4375ecb97 100644 --- a/library/cpp/resource/resource.cpp +++ b/library/cpp/resource/resource.cpp @@ -1,9 +1,9 @@ #include "resource.h" -#include "resource.h" +#include "resource.h" #include "registry.h" #include <util/generic/yexception.h> -#include <util/generic/xrange.h> +#include <util/generic/xrange.h> using namespace NResource; @@ -47,11 +47,11 @@ size_t NResource::Count() noexcept { TStringBuf NResource::KeyByIndex(size_t idx) { return CommonStore()->KeyByIndex(idx); } - + TVector<TStringBuf> NResource::ListAllKeys() { TVector<TStringBuf> res(Reserve(NResource::Count())); - for (auto i : xrange(NResource::Count())) { - res.push_back(NResource::KeyByIndex(i)); - } - return res; -} + for (auto i : xrange(NResource::Count())) { + res.push_back(NResource::KeyByIndex(i)); + } + return res; +} diff --git a/library/cpp/resource/ut/resource_ut.cpp b/library/cpp/resource/ut/resource_ut.cpp index b6fa8e4df3..d5abae7bd2 100644 --- a/library/cpp/resource/ut/resource_ut.cpp +++ b/library/cpp/resource/ut/resource_ut.cpp @@ -1,5 +1,5 @@ #include <library/cpp/resource/resource.h> -#include <library/cpp/testing/unittest/registar.h> +#include <library/cpp/testing/unittest/registar.h> Y_UNIT_TEST_SUITE(TestResource) { Y_UNIT_TEST(Test1) { |