Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete global stats module #76

Merged
merged 2 commits into from
Sep 6, 2024
Merged

Conversation

zmstone
Copy link
Contributor

@zmstone zmstone commented Sep 6, 2024

No description provided.

@@ -285,8 +278,7 @@ handle_info({do_init, St0}, _) ->
handle_info(?linger_expire, St) ->
{noreply, maybe_send_to_kafka(St#{?linger_expire_timer := false})};
handle_info(?SEND_REQ(_, Batch, _) = Call, #{config := #{max_batch_bytes := Limit}} = St0) ->
{Calls, Cnt, Oct} = collect_send_calls([Call], 1, batch_bytes(Batch), Limit),
ok = recv_stats(St0, #{cnt => Cnt, oct => Oct}),
{Calls, _CollectedBytes} = collect_send_calls([Call], batch_bytes(Batch), Limit),
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems like CollectedBytes is no longer used anywhere else, so we don't need to keep track of it in collect_send_calls?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

right, this part will be re-written in the next pr.

@zmstone zmstone merged commit b136784 into kafka4beam:main Sep 6, 2024
6 checks passed
@zmstone zmstone deleted the 0906-delete-stats branch September 6, 2024 20:35
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.

2 participants