Skip to content

Commit

Permalink
fix: fix configuration name for batch interval and size
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasTurina authored Dec 3, 2024
1 parent 6735ebc commit b6880c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/agent/communicator/include/communicator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ namespace communicator
m_retryInterval = getConfigValue.template operator()<std::time_t>("agent", "retry_interval")
.value_or(config::agent::DEFAULT_RETRY_INTERVAL);

m_batchInterval = getConfigValue.template operator()<std::time_t>("agent", "batch_interval")
m_batchInterval = getConfigValue.template operator()<std::time_t>("events", "batch_interval")
.value_or(config::agent::DEFAULT_BATCH_INTERVAL);

if (m_batchInterval < 1'000 || m_batchInterval > (1'000 * 60 * 60))
Expand All @@ -67,7 +67,7 @@ namespace communicator
m_batchInterval = config::agent::DEFAULT_BATCH_INTERVAL;
}

m_batchSize = getConfigValue.template operator()<int>("agent", "batch_size")
m_batchSize = getConfigValue.template operator()<int>("events", "batch_size")
.value_or(config::agent::DEFAULT_BATCH_SIZE);

if (m_batchSize < 1'000 || m_batchSize > 1'000'000)
Expand Down

0 comments on commit b6880c1

Please sign in to comment.