Skip to content

Commit

Permalink
autoformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-rcheng committed Nov 20, 2023
1 parent 7628b75 commit 7014658
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,14 @@ public void closeClient(
SnowflakeStreamingIngestClient registeredClient =
this.registeredClients.getIfPresent(connectorConfig);
if (registeredClient != null) {
// invalidations are processed on the next get or in the background, so we still need to close the client here
// invalidations are processed on the next get or in the background, so we still need to close
// the client here
this.registeredClients.invalidate(connectorConfig);
}

this.streamingClientHandler.closeClient(client);
this.streamingClientHandler.closeClient(registeredClient); // in case the given client is different for some reason
this.streamingClientHandler.closeClient(
registeredClient); // in case the given client is different for some reason
}

public Map<Map<String, String>, SnowflakeStreamingIngestClient> getRegisteredClients() {
Expand Down

0 comments on commit 7014658

Please sign in to comment.