Skip to content

Commit

Permalink
feat(proxy): Slight tightening of the ProxyConfig contact. (#1339)
Browse files Browse the repository at this point in the history
s/Object/String, we can revisit should we need to store more than
simple Strings.
  • Loading branch information
ajordens committed Sep 11, 2020
1 parent f5ab7ff commit 1d652d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -45,5 +45,5 @@ public class ProxyConfig {
private Long writeTimeoutMs = 30_000L;

/** Additional attributes for this proxy. */
private Map<String, Object> additionalAttributes = new HashMap<>();
private Map<String, String> additionalAttributes = new HashMap<>();
}
Expand Up @@ -35,7 +35,7 @@ internal class Proxy(val config: ProxyConfig) {
*/
fun init(okHttpClientProvider: OkHttpClientProvider) : Proxy {
val okHttpClient = okHttpClientProvider.getClient(DefaultServiceEndpoint(
"proxy__${config.id}", config.uri, config.additionalAttributes, false
"proxy__${config.id}", config.uri, config.additionalAttributes as Map<String, Any>, false
))

this.okHttpClient = okHttpClient
Expand Down

0 comments on commit 1d652d0

Please sign in to comment.