Skip to content

Commit e51589f

Browse files
committed
pom 修改
1 parent e9496b9 commit e51589f

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

pom.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
<packaging>pom</packaging>
1010

1111
<name>tx-lcn</name>
12+
<url>https://github.com/codingapi/tx-lcn</url>
13+
<description>tx-lcn project for LCN</description>
1214

1315
<modules>
1416
<module>tx-client</module>
@@ -126,7 +128,9 @@
126128
</execution>
127129
</executions>
128130
</plugin>
129-
<!-- 手动打包时,将下面的plugin注释掉 -->
131+
132+
<!--手动打包时,将下面的plugin注释掉-->
133+
130134
<!--<plugin>-->
131135
<!--<groupId>org.apache.maven.plugins</groupId>-->
132136
<!--<artifactId>maven-gpg-plugin</artifactId>-->
@@ -141,6 +145,7 @@
141145
<!--</execution>-->
142146
<!--</executions>-->
143147
<!--</plugin>-->
148+
144149
</plugins>
145150
</build>
146151

tx-client/src/main/java/com/codingapi/tx/netty/service/impl/NettyServiceImpl.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import io.netty.channel.socket.SocketChannel;
1414
import io.netty.channel.socket.nio.NioSocketChannel;
1515
import io.netty.handler.codec.LengthFieldBasedFrameDecoder;
16-
import io.netty.handler.codec.LengthFieldPrepender;
1716
import io.netty.handler.timeout.IdleStateHandler;
1817
import org.slf4j.Logger;
1918
import org.slf4j.LoggerFactory;
@@ -76,8 +75,7 @@ public void initChannel(SocketChannel ch) throws Exception {
7675

7776
ch.pipeline().addLast("timeout", new IdleStateHandler(heart, heart, heart, TimeUnit.SECONDS));
7877

79-
ch.pipeline().addLast(new LengthFieldPrepender(4, false));
80-
ch.pipeline().addLast(new LengthFieldBasedFrameDecoder(Integer.MAX_VALUE, 0, 4, 0, 4));
78+
ch.pipeline().addLast(new LengthFieldBasedFrameDecoder(Integer.MAX_VALUE, 1, 1, 0, 0));
8179

8280
ch.pipeline().addLast(transactionHandler);
8381
}

tx-manager/src/main/java/com/codingapi/tm/netty/service/impl/NettyServerServiceImpl.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22

33
import com.codingapi.tm.Constants;
44
import com.codingapi.tm.config.ConfigReader;
5-
import com.codingapi.tm.manager.service.TxManagerService;
65
import com.codingapi.tm.netty.handler.TxCoreServerHandler;
76
import com.codingapi.tm.netty.service.NettyServerService;
8-
97
import com.codingapi.tm.netty.service.NettyService;
108
import io.netty.bootstrap.ServerBootstrap;
119
import io.netty.channel.ChannelInitializer;
@@ -15,7 +13,6 @@
1513
import io.netty.channel.socket.SocketChannel;
1614
import io.netty.channel.socket.nio.NioServerSocketChannel;
1715
import io.netty.handler.codec.LengthFieldBasedFrameDecoder;
18-
import io.netty.handler.codec.LengthFieldPrepender;
1916
import io.netty.handler.logging.LogLevel;
2017
import io.netty.handler.logging.LoggingHandler;
2118
import io.netty.handler.timeout.IdleStateHandler;
@@ -66,8 +63,7 @@ public void start() {
6663
public void initChannel(SocketChannel ch) throws Exception {
6764
ch.pipeline().addLast("timeout", new IdleStateHandler(heartTime, heartTime, heartTime, TimeUnit.SECONDS));
6865

69-
ch.pipeline().addLast(new LengthFieldPrepender(4, false));
70-
ch.pipeline().addLast(new LengthFieldBasedFrameDecoder(Integer.MAX_VALUE, 0, 4, 0, 4));
66+
ch.pipeline().addLast(new LengthFieldBasedFrameDecoder(Integer.MAX_VALUE, 1, 1, 0, 0));
7167

7268
ch.pipeline().addLast(txCoreServerHandler);
7369
}

tx-plugins-redis/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<version>${lcn.last.version}</version>
1616

1717
<name>tx-plugins-redis</name>
18+
<url>https://github.com/codingapi/tx-lcn</url>
1819
<description>tx-plugins-redis project for Spring Boot</description>
1920

2021

0 commit comments

Comments
 (0)