Skip to content

Commit 3410eae

Browse files
MangernCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 4914265 commit 3410eae

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

examples/clients/app/services.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,14 @@ project root. -->
55
<container id="default" version="1.0">
66
<search />
77
<document-api />
8-
<nodes count="2">
9-
</nodes>
8+
<nodes count="2"/>
109
</container>
1110
<content version="1.0" id="content">
1211
<min-redundancy>2</min-redundancy>
1312
<documents>
1413
<document type="passage" mode="index"/>
1514
</documents>
16-
<nodes count="2">
17-
</nodes>
15+
<nodes count="2"/>
1816
</content>
1917

2018
</services>

examples/clients/client-java/app/src/main/java/com/example/VespaClient.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/*
2+
* Copyright Vespa.ai. All rights reserved.
3+
*/
14
package com.example;
25

36
import java.io.FileInputStream;
@@ -52,10 +55,10 @@ private enum AuthMethod {
5255

5356
private static final AuthMethod AUTH_METHOD = AuthMethod.MTLS;
5457

55-
private static final String ENDPOINT = "YOUR_ENDPOINT";
58+
private static final String ENDPOINT = "YOUR_ENDPOINT";
5659
// Auth method: mTLS
5760
private static final String PUBLIC_CERT = "/path/to/public-cert.pem";
58-
private static final String PRIVATE_KEY = "/peth/to/private-key.pem";
61+
private static final String PRIVATE_KEY = "/path/to/private-key.pem";
5962
// Auth method: token.
6063
private static final String TOKEN = "YOUR_TOKEN";
6164

0 commit comments

Comments
 (0)