mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Declare channel outside try/catch
No StatusRuntimeException can be thrown from this code, so it is not necessary to include in the try block.
This commit is contained in:
parent
0a2aac00d3
commit
b7fda8de5e
@ -115,7 +115,6 @@ public class CliMain {
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
try {
|
||||
var channel = ManagedChannelBuilder.forAddress(host, port).usePlaintext().build();
|
||||
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
|
||||
try {
|
||||
@ -126,6 +125,7 @@ public class CliMain {
|
||||
}
|
||||
}));
|
||||
|
||||
try {
|
||||
var credentials = new PasswordCallCredentials(password);
|
||||
|
||||
switch (method) {
|
||||
|
Loading…
Reference in New Issue
Block a user