Skip to content

Commit e551a57

Browse files
wip
1 parent f881b73 commit e551a57

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/main/java/com/influxdb/v3/client/internal/RestClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ final class RestClient implements AutoCloseable {
135135
}
136136
}
137137

138-
this.eventLoopGroup = new OioEventLoopGroup();
138+
this.eventLoopGroup = new OioEventLoopGroup(1);
139139

140140
// this.promise = this.eventLoopGroup.next().newPromise();
141141

@@ -262,9 +262,9 @@ public FullHttpResponse request(@Nonnull HttpMethod method,
262262
ChannelFuture channelFuture = getBootstrap().connect();
263263
if (!channelFuture.await(this.timeout.toMillis(), TimeUnit.MILLISECONDS)) {
264264
throw new InfluxDBApiException(new ConnectTimeoutException());
265-
} else {
266-
this.channel = channelFuture.channel();
267265
}
266+
this.channel = channelFuture.channel();
267+
268268
}
269269

270270
//fixme remove syncUninterruptibly

src/test/java/com/influxdb/v3/client/integration/E2ETest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ public void testQueryRows() throws Exception {
228228
timestamp
229229
);
230230
client.writeRecord(record, new WriteOptions(null, WritePrecision.MS, null));
231-
Thread.sleep(2000);
232231
testDatas.add(map);
233232
}
234233

@@ -307,7 +306,6 @@ public void testQueryRowWithOptions() throws Exception {
307306
timestamp
308307
);
309308
client.writeRecord(record, new WriteOptions(null, WritePrecision.MS, null));
310-
Thread.sleep(2000);
311309
testDatas.add(map);
312310
}
313311

0 commit comments

Comments
 (0)