-
Notifications
You must be signed in to change notification settings - Fork 2
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
[PPP-502] TKMS - Add decorator for message headers #87
Conversation
@@ -144,10 +147,10 @@ protected void checkActiveTransaction(int shard, boolean transactionActive, bool | |||
|
|||
@Override | |||
public SendMessagesResult sendMessages(SendMessagesRequest request) { | |||
var transactionActive = TransactionSynchronizationManager.isActualTransactionActive(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
making checkstyle happy
Distance between variable 'transactionActive' declaration and its first usage is 4, but allowed 3. Consider making that variable final if you still need to store its value in advance (before method calls that might have side effects on the original value).
Context
Adding a decorator interface that services can write their headers injectors separately
To be used with cases like transfers where we want to add transfer headers in the whole service
So instead of modifying every message, you can write a single decorator
Checklist