diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-08-16 22:35:50 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-08-16 22:43:57 +0300 |
commit | 2fcc3532d5bfd8ccb3fb5b884088c01376c7888d (patch) | |
tree | 9040d37b083ba19eed43ffa2dbefcf6b4c70d093 /library/cpp/netliba/v6/block_chain.h | |
parent | 4216b16bbaa20122c440773c8360527e846305cc (diff) | |
download | ydb-2fcc3532d5bfd8ccb3fb5b884088c01376c7888d.tar.gz |
Intermediate changes
Diffstat (limited to 'library/cpp/netliba/v6/block_chain.h')
-rw-r--r-- | library/cpp/netliba/v6/block_chain.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/library/cpp/netliba/v6/block_chain.h b/library/cpp/netliba/v6/block_chain.h index 25247ec05f..e214d5f603 100644 --- a/library/cpp/netliba/v6/block_chain.h +++ b/library/cpp/netliba/v6/block_chain.h @@ -140,9 +140,8 @@ namespace NNetliba { TIntrusivePtr<TSharedMemory> SharedData; TVector<TIntrusivePtr<TThrRefBase>> AttachedStorage; char DefaultBuf[128]; // prevent allocs in most cases - enum { - N_DEFAULT_BLOCK_SIZE = 1024 - }; + + static constexpr int N_DEFAULT_BLOCK_SIZE = 1024; char* Alloc(int sz) { char* res = nullptr; |