fix doip local singleton

This commit is contained in:
CaiHQ 2023-09-24 09:17:25 +08:00
parent 35e39f3dd9
commit 8ffaa3f535
3 changed files with 6 additions and 6 deletions

View File

@ -51,7 +51,7 @@ dependencies {
implementation 'com.sun.mail:javax.mail:1.6.2'
implementation 'com.squareup.okhttp3:okhttp:4.9.1'
implementation 'org.bdware.bdcontract:sdk-java:1.0.2'
implementation 'org.bdware.doip:doip-audit-tool:1.3.6'
implementation 'org.bdware.doip:doip-audit-tool:1.3.7'
implementation 'org.bdware.doip:doip-sdk:1.4.9'
implementation fileTree(dir: 'lib', include: '*.jar')
testImplementation 'junit:junit:4.13.2'
@ -70,8 +70,8 @@ jar {
// uncomment this when publish,
// while develop at local use "false"
configurations.runtimeClasspath.filter {
it.getAbsolutePath().contains("/lib/")
// false
// it.getAbsolutePath().contains("/lib/")
false
}.collect {
it.isDirectory() ? it : zipTree(it)
}

View File

@ -78,7 +78,7 @@ public class DOIPUtil {
if (msg != null) {
return msg;
} else
return DoipMessageFactory.createTimeoutResponse(message.requestID);
return DoipMessageFactory.createTimeoutResponse(message.requestID, "timeout");
} catch (Exception ie) {
ie.printStackTrace();
return DoipMessageFactory.createConnectFailedResponse(message.requestID);
@ -219,7 +219,7 @@ public class DOIPUtil {
}
public static IRPClientWrapper createIrpClient(String uri, String pubkey, String privateKey,
String repoName) {
String repoName) {
EndpointConfig config = new EndpointConfig();
config.routerURI = uri;
config.repoName = repoName;

View File

@ -95,7 +95,7 @@ public class DoipLocalSingleton {
DOOPRequestHandler handler = ContractProcess.instance.doopRequestHandler;
server.setRequestCallback(handler);
if (config != null)
SharableVarManager.initSharableVarManager(info.id, config);
SharableVarManager.initSharableVarManager(info.id, config);
} catch (Exception e) {
e.printStackTrace();
}