Skip to content

Commit

Permalink
Revert "nf-wave WaveClient: fix for s5cmdConfigUrl"
Browse files Browse the repository at this point in the history
This reverts commit cb04607.
  • Loading branch information
marcodelapierre committed Feb 1, 2024
1 parent cb04607 commit 7ca3eb2
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class WaveClient {
this.fusion = new FusionConfig(session.config.fusion as Map ?: Collections.emptyMap(), SysEnv.get())
this.tower = new TowerConfig(session.config.tower as Map ?: Collections.emptyMap(), SysEnv.get())
this.awsFargate = WaveFactory.isAwsBatchFargateMode(session.config)
this.s5cmdConfigUrl = parseUrl(session.config.navigate('wave.s5cmdConfigUrl') as String)
this.s5cmdConfigUrl = session.config.navigate('wave.s5cmdConfigUrl') as URL
this.endpoint = config.endpoint()
this.condaChannels = session.getCondaConfig()?.getChannels() ?: DEFAULT_CONDA_CHANNELS
log.debug "Wave config: $config"
Expand All @@ -142,10 +142,6 @@ class WaveClient {
this.httpClient = newHttpClient()
}

private URL parseUrl(String value) {
return value ? new URL(value) : null
}

protected HttpClient newHttpClient() {
final builder = HttpClient.newBuilder()
.version(HttpClient.Version.HTTP_1_1)
Expand Down

0 comments on commit 7ca3eb2

Please sign in to comment.