Skip to content

Commit 14c1c80

Browse files
committed
fix(db): reorder setSendTimeOut function
1 parent 6b2a7f9 commit 14c1c80

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

framework/src/main/java/org/tron/common/logsfilter/nativequeue/NativeMessageQueue.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,11 @@ public static NativeMessageQueue getInstance() {
3030
public boolean start(int bindPort, int sendQueueLength) {
3131
context = new ZContext();
3232
publisher = context.createSocket(SocketType.PUB);
33-
publisher.setSendTimeOut(ZMQ_SEND_TIME_OUT);
3433

3534
if (Objects.isNull(publisher)) {
3635
return false;
3736
}
38-
37+
publisher.setSendTimeOut(ZMQ_SEND_TIME_OUT);
3938
if (bindPort == 0 || bindPort < 0) {
4039
bindPort = DEFAULT_BIND_PORT;
4140
}

0 commit comments

Comments
 (0)