You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "epugh (via GitHub)" <gi...@apache.org> on 2023/02/13 13:04:07 UTC

[GitHub] [solr] epugh commented on a diff in pull request #1338: SOLR-16595: Standardize Solr Client Builders handling of times

epugh commented on code in PR #1338:
URL: https://github.com/apache/solr/pull/1338#discussion_r1104444472


##########
solr/solrj/src/java/org/apache/solr/client/solrj/impl/SolrClientBuilder.java:
##########
@@ -101,13 +116,27 @@ public B withConnectionTimeout(int connectionTimeoutMillis) {
    * sockets.
    *
    * <p>For valid values see {@link org.apache.http.client.config.RequestConfig#getSocketTimeout()}
+   *
+   * <p>* @deprecated Please use {@link #withSocketTimeout(long, TimeUnit)}
    */
+  @Deprecated(since = "9.2")
   public B withSocketTimeout(int socketTimeoutMillis) {
+    withSocketTimeout(connectionTimeoutMillis, TimeUnit.MILLISECONDS);

Review Comment:
   OMG...   For some reason I was locked into looking for red underlines from intellij, and never even thought about this.  In my other branch, I think I did the exact same thing again...   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org