Skip to content

Conversation

@liuzengh
Copy link
Contributor

No description provided.

@liuzengh liuzengh changed the title sse: introduce a sync pool for rawEvent to optimize memory usage. sse: introduce sync pool for rawEvent to optimize memory usage. Apr 24, 2025
@liuzengh
Copy link
Contributor Author

@jeevatkm please take a look

@jeevatkm jeevatkm added this to the v3.0.0 Milestone milestone May 1, 2025
Copy link
Member

@jeevatkm jeevatkm left a comment

Choose a reason for hiding this comment

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

@liuzengh Can you please check test cases failure?

liuzengh added 2 commits May 3, 2025 10:35
Move the `defer putRawEvent(ed)` call after error handling to ensure resources are properly released only when parsing succeeds. This prevents potential resource leaks when errors occur during event parsing.
@codecov
Copy link

codecov bot commented May 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.82%. Comparing base (ed875fb) to head (194df8a).
Report is 1 commits behind head on v3.

Additional details and impacted files
@@           Coverage Diff           @@
##               v3    #1011   +/-   ##
=======================================
  Coverage   99.82%   99.82%           
=======================================
  Files          18       18           
  Lines        3896     3914   +18     
=======================================
+ Hits         3889     3907   +18     
  Misses          5        5           
  Partials        2        2           
Flag Coverage Δ
unittests 99.82% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@liuzengh liuzengh requested a review from jeevatkm May 3, 2025 02:47
@liuzengh
Copy link
Contributor Author

liuzengh commented May 4, 2025

@liuzengh Can you please check test cases failure?

fixed

Copy link
Member

@jeevatkm jeevatkm left a comment

Choose a reason for hiding this comment

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

@liuzengh Thanks for fixing test cases.

@jeevatkm jeevatkm merged commit 036c589 into go-resty:v3 May 7, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants