Skip to content

Commit 3d8aa1a

Browse files
committed
Fix newInstance() to apply configuration
1 parent e85571e commit 3d8aa1a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/com/github/tadayosi/torchserve/client/TorchServeClient.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ private TorchServeClient(Inference inference, Management management, Metrics met
2323
}
2424

2525
public static TorchServeClient newInstance() {
26-
return new TorchServeClient();
26+
return builder().build();
2727
}
2828

2929
public static Builder builder() {

src/main/java/com/github/tadayosi/torchserve/client/model/Response.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public void setStatus(String status) {
3030
@Override
3131
public String toString() {
3232
return getClass().getSimpleName() + " {" +
33-
" status: " + status + "\n" +
33+
" status: " + status + " " +
3434
"}";
3535
}
3636
}

0 commit comments

Comments
 (0)