Skip to content

Commit

Permalink
Merge pull request #14 from intrinio/ELH/client-info-header
Browse files Browse the repository at this point in the history
added client info header
  • Loading branch information
evanlhyde authored Dec 13, 2021
2 parents 0150fb6 + f190b23 commit 694aa50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/intrinio/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public Tuple(X x, Y y) {
while (!this.isCancellationRequested) {
try {
Thread.sleep(20000);
Client.Log("Sending heartbeat");
//Client.Log("Sending heartbeat");
wsLock.readLock().lock();
try {
if (wsState.isReady()) {
Expand Down Expand Up @@ -270,6 +270,7 @@ private void doBackoff(BooleanSupplier callback) {
HttpURLConnection con;
try {
con = (HttpURLConnection) url.openConnection();
con.setRequestProperty("Client-Information", "IntrinioRealtimeJavaSDKv3.1");
} catch (IOException e) {
Client.Log("Authorization Failure. Please check your network connection. " + e.getMessage());
return false;
Expand Down
1 change: 0 additions & 1 deletion src/intrinio/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ public static Config load() {
Reader reader = new InputStreamReader(inputStream);
Gson gson = new Gson();
Config config = gson.fromJson(reader, Config.class);
System.out.println(config);
return config;
} catch (Exception e) {
return null;
Expand Down

0 comments on commit 694aa50

Please sign in to comment.