Skip to content

Commit

Permalink
IS 495 make catchup timeout configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
olehnikolaiev committed Jan 2, 2025
1 parent 68d6613 commit 532e887
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions network/IO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ nlohmann::json IO::readJsonHeader( file_descriptor descriptor, const char* _erro

try {
uint32_t timeoutSec = sChain->getNode()->isSyncOnlyNode() ?
getNode()->getSyncNodeReadJsonHeaderTimeoutMs() :
getNode()->getReadJsonHeaderTimeoutMs();
sChain->getNode()->getSyncNodeReadJsonHeaderTimeoutMs() :
sChain->getNode()->getReadJsonHeaderTimeoutMs();
readBytes( descriptor, buf2, msg_len( sizeof( uint64_t ) ), timeoutSec );
} catch ( ExitRequestedException& ) {
throw;
Expand Down

0 comments on commit 532e887

Please sign in to comment.