Skip to content

Conversation

@FZambia
Copy link
Member

@FZambia FZambia commented Apr 1, 2025

Should be handy to reduce size of data sent in streams with entire state in publications. Where intermediary message loss is safe and beneficial.

type ChannelBatchConfig struct {
	// MaxSize is the maximum number of messages to batch before flushing.
	MaxSize int64
	// MaxDelay is the maximum time to wait before flushing.
	MaxDelay time.Duration
	// FlushLatest if true, then Centrifuge flushes only the latest item in the batch
	// upon reaching the MaxSize or MaxDelay.
	FlushLatest bool // <- THIS ONE!
}

@codecov
Copy link

codecov bot commented Apr 1, 2025

Codecov Report

Attention: Patch coverage is 95.83333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 83.22%. Comparing base (0bf59d4) to head (c838e66).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
client.go 91.66% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #471      +/-   ##
==========================================
- Coverage   83.58%   83.22%   -0.37%     
==========================================
  Files          39       39              
  Lines        8956     8948       -8     
==========================================
- Hits         7486     7447      -39     
- Misses       1112     1139      +27     
- Partials      358      362       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@FZambia FZambia merged commit 9be0c1a into master Apr 4, 2025
8 checks passed
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