Skip to content

Commit 1a766b8

Browse files
committed
fix: remove unnecessary field
Signed-off-by: zhiheng123 <[email protected]>
1 parent d28fa40 commit 1a766b8

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

mtconnect-examples/src/main/java/io/github/protocol/mtconnect/examples/MTConnectIoTDAServerExample.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ public static void main(String[] args) {
1818
IoTDAMtProcessor ioTDAMtProcessor = new IoTDAMtProcessor.Builder()
1919
.setAk(System.getenv("CLOUD_SDK_AK"))
2020
.setSk(System.getenv("CLOUD_SDK_SK"))
21-
.setProjectId("your_project_id")
2221
.setEndpoint("ec138732b4.st1.iotda-app.cn-north-4.myhuaweicloud.com")
2322
.build();
2423

mtconnect-server/src/main/java/io/github/protocol/mtconnect/server/impl/IoTDAMtProcessor.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
public class IoTDAMtProcessor implements MTProcessor {
2424
private String ak;
2525
private String sk;
26-
private String projectId;
2726
private String endpoint;
2827
private IoTDAClient client;
2928

@@ -62,11 +61,6 @@ public Builder setSk(String sk) {
6261
return this;
6362
}
6463

65-
public Builder setProjectId(String projectId) {
66-
ioTDAMtProcessor.projectId = projectId;
67-
return this;
68-
}
69-
7064
public Builder setEndpoint(String endpoint) {
7165
ioTDAMtProcessor.endpoint = endpoint;
7266
return this;

0 commit comments

Comments
 (0)