File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/main/java/com/bigchaindb/builders Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ private static class Builder implements ITokens {
8787 /**
8888 * The baser url.
8989 */
90- String baserUrl ;
90+ String baseUrl ;
9191
9292 /**
9393 * The tokens.
@@ -115,7 +115,7 @@ private static class Builder implements ITokens {
115115 * @param baseUrl the base url
116116 */
117117 public Builder (String baseUrl ) {
118- this .baserUrl = baseUrl ;
118+ this .baseUrl = baseUrl ;
119119 }
120120
121121 /*
@@ -138,18 +138,18 @@ public ITokens addToken(String key, String value) {
138138 */
139139 @ Override
140140 public void setup () {
141- log .debug (this .baserUrl );
141+ log .debug (this .baseUrl );
142142 BigChainDBGlobals .setAuthorizationTokens (tokens );
143- BigChainDBGlobals .setBaseUrl (this .baserUrl + "/api" + BigchainDbApi .API_VERSION );
144- BigChainDBGlobals .setWsSocketUrl (this .baserUrl + "/api" + BigchainDbApi .API_VERSION + BigchainDbApi .STREAMS );
143+ BigChainDBGlobals .setBaseUrl (this .baseUrl + "/api" + BigchainDbApi .API_VERSION );
144+ BigChainDBGlobals .setWsSocketUrl (this .baseUrl + "/api" + BigchainDbApi .API_VERSION + BigchainDbApi .STREAMS );
145145
146146 if (this .httpClient == null && BigChainDBGlobals .getHttpClient () == null ) {
147147 BigChainDBGlobals .setHttpClient (buildDefaultHttpClient ());
148148 }
149149
150150 try {
151151 BigChainDBGlobals .setApiEndpoints (JsonUtils .fromJson (
152- NetworkUtils .sendGetRequest (this .baserUrl + "/api" + BigchainDbApi .API_VERSION ).body ().string (),
152+ NetworkUtils .sendGetRequest (this .baseUrl + "/api" + BigchainDbApi .API_VERSION ).body ().string (),
153153 ApiEndpoints .class ));
154154 } catch (IOException e ) {
155155 e .printStackTrace ();
You can’t perform that action at this time.
0 commit comments