You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by ki...@apache.org on 2022/06/13 04:11:22 UTC
[incubator-seatunnel] branch dev updated: a more understandable code,and code warning will disappear (#2005)
This is an automated email from the ASF dual-hosted git repository.
kirs pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-seatunnel.git
The following commit(s) were added to refs/heads/dev by this push:
new 8aa60403 a more understandable code,and code warning will disappear (#2005)
8aa60403 is described below
commit 8aa604034c00abf97ce69e6d680b7d7c343385e4
Author: Jared Li <lh...@gmail.com>
AuthorDate: Mon Jun 13 12:11:17 2022 +0800
a more understandable code,and code warning will disappear (#2005)
---
.../java/org/apache/seatunnel/flink/fake/source/FakeSourceStream.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/seatunnel-connectors/seatunnel-connectors-flink/seatunnel-connector-flink-fake/src/main/java/org/apache/seatunnel/flink/fake/source/FakeSourceStream.java b/seatunnel-connectors/seatunnel-connectors-flink/seatunnel-connector-flink-fake/src/main/java/org/apache/seatunnel/flink/fake/source/FakeSourceStream.java
index 7fa204a7..be99fcb5 100644
--- a/seatunnel-connectors/seatunnel-connectors-flink/seatunnel-connector-flink-fake/src/main/java/org/apache/seatunnel/flink/fake/source/FakeSourceStream.java
+++ b/seatunnel-connectors/seatunnel-connectors-flink/seatunnel-connector-flink-fake/src/main/java/org/apache/seatunnel/flink/fake/source/FakeSourceStream.java
@@ -84,7 +84,7 @@ public class FakeSourceStream extends RichParallelSourceFunction<Row> implements
while (running){
Row rowData = MockSchema.mockRowData(mockDataSchema);
ctx.collect(rowData);
- Thread.sleep(TimeUnit.SECONDS.toMillis(mockDataInterval));
+ TimeUnit.MILLISECONDS.sleep(mockDataInterval);
}
}