Skip to content

Commit

Permalink
Fix (Closes HXSecurity#239): only install agent in Web Service
Browse files Browse the repository at this point in the history
  • Loading branch information
owefsad committed Feb 9, 2022
1 parent fb15247 commit 24da745
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 15 deletions.
7 changes: 0 additions & 7 deletions dongtai-agent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,6 @@
<goal>shade</goal>
</goals>
<configuration>
<relocations>
<relocation>
<pattern>org.apache.commons</pattern>
<shadedPattern>${shade-prefix}.org.apache.commons</shadedPattern>
</relocation>
</relocations>

<filters>
<filter>
<artifact>*:*</artifact>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public boolean isMatch(RuntimeMXBean paramRuntimeMXBean) {

@Override
public String getName() {
return null;
return "Dubbo";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ private static StringBuilder sendRequest(HttpMethods method, String baseUrl, Str
if (connection.getResponseCode() != 200) {
throw new NullPointerException(connection.getResponseCode() + " " + connection.getResponseMessage());
}
System.out.println(connection.getResponseCode());
InputStream is = connection.getInputStream();
BufferedReader rd = new BufferedReader(new InputStreamReader(is));
String line;
Expand All @@ -116,8 +115,6 @@ private static StringBuilder sendRequest(HttpMethods method, String baseUrl, Str
}
rd.close();
return response;
} catch (Exception e) {
throw e;
} finally {
if (connection != null) {
connection.disconnect();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ static class MyScheduledExecutor implements Runnable {

private String jobName;

MyScheduledExecutor() {

}

MyScheduledExecutor(String jobName) {
this.jobName = jobName;
}
Expand Down

0 comments on commit 24da745

Please sign in to comment.