cnzakii opened a new issue, #5177:
URL: https://github.com/apache/eventmesh/issues/5177

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/eventmesh/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Environment
   
   Mac
   
   ### EventMesh version
   
   master
   
   ### What happened
   
   In the `BROADCAST` strategy of `AbstractHttpSinkHandler`, the attributes map 
is updated within the loop instead of being assigned once before the loop. This 
causes a logic error that may prevent the callback operation from executing 
properly.
   
   ### Expected behavior:
   The `attributes.put(MultiHttpRequestContext.NAME, new 
MultiHttpRequestContext(urls.size()))` statement should be placed outside the 
loop to ensure that the attribute is set only once, rather than being 
overwritten in each iteration.
   
   
![Image](https://github.com/user-attachments/assets/9200767a-f705-4875-af3d-8ee16b01db67)
   
   ### How to reproduce
   
   None
   
   ### Debug logs
   
   ```Java
   
   ```
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct) *


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to