Closed msaavedra-healthgorilla closed 8 months ago
This is fixed now. SmartySender now takes into account the proper maxTimout with this code
SmartySender(int maxTimeOut) { this.maxTimeOut = maxTimeOut; this.client = new OkHttpClient.Builder() .writeTimeout(this.maxTimeOut, TimeUnit.MILLISECONDS) .readTimeout(this.maxTimeOut, TimeUnit.MILLISECONDS) .connectTimeout(this.maxTimeOut, TimeUnit.MILLISECONDS) .build(); }
I utilized your suggestions from your pull request! Thank you!
I tried doing this:
and variations of this, but couldn't get it to work. Then I realized that your
ClientBuilder.buildUsStreetApiClient()
callsSmartySender(int maxTimeout)
constructor.The
maxTimeout
is ignored and this constructor should be something like this:Are you guys open to PRs from community?