This is an automated email from the ASF dual-hosted git repository.
majorhe pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-eventmesh.git
The following commit(s) were added to refs/heads/master by this push:
new f70eec66 fix: Redundant local variables
new a6a3c2ba Merge pull request #1971 from szyuan/master
f70eec66 is described below
commit f70eec66a8901f2e1827d8ef66d1030b0c559ac8
Author: szyuan <[email protected]>
AuthorDate: Thu Oct 27 17:37:22 2022 +0800
fix: Redundant local variables
---
.../java/org/apache/eventmesh/runtime/boot/AbstractRemotingServer.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git
a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/boot/AbstractRemotingServer.java
b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/boot/AbstractRemotingServer.java
index 311ae2e0..226c7fd4 100644
---
a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/boot/AbstractRemotingServer.java
+++
b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/boot/AbstractRemotingServer.java
@@ -61,8 +61,7 @@ public abstract class AbstractRemotingServer {
@Override
public Thread newThread(Runnable r) {
- Thread t = new Thread(r, threadPrefix + "-io-" +
count.incrementAndGet());
- return t;
+ return new Thread(r, threadPrefix + "-io-" +
count.incrementAndGet());
}
});
return ioGroup;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]