Skip to content

Conversation

@turtledreams
Copy link
Contributor

No description provided.

Copy link
Member

@ArtursKadikis ArtursKadikis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"stopping the process" none of this

potentially:
process -> processing

tests need to be updated for setting the value after init. That should work

ct.start("YOUR_APP_KEY", "https://try.count.ly", 443, true);
ct.SetMaxEventsPerMessage(10);
ct.setAutomaticSessionUpdateInterval(5);
ct.setMaxRequestQueueProcessingSize(2);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need a comment here and a not that this isn't needed for production

src/countly.cpp Outdated
* @param requestQueueProcessingSize: max size of requests to process at a time
*/
void Countly::setMaxRequestQueueProcessingSize(unsigned int requestQueueProcessingSize) {
if (is_sdk_initialized) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be usable before or after init

processedRequestsCounter++;

if (processedRequestsCounter > impl->_configuration->requestQueueProcessingThreshold) {
impl->_logger->log(LogLevel::DEBUG, cly::utils::format_string("[RequestModule] processQueue: Processing limit has been reached, stopping the process."));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Processing limit -> Processing max batch size

tests/config.cpp Outdated
ct.setAutomaticSessionUpdateInterval(5);
ct.setSalt("salt");
ct.setMaxRequestQueueSize(10);
ct.setMaxRequestQueueProcessingSize(10);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't belong here. is false

@ArtursKadikis ArtursKadikis merged commit 42b8ef8 into staging Apr 24, 2023
@ArtursKadikis ArtursKadikis deleted the request-batch branch April 24, 2023 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants