Skip to content

Commit

Permalink
Fix install, and for duration
Browse files Browse the repository at this point in the history
  • Loading branch information
pault-t-canva committed May 10, 2024
1 parent 06282c2 commit 6cff66e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/src/main/kotlin/net/devslash/FetchDsl.kt
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ open class CallBuilder<T>(private val url: String = "") {
}

fun install(vararg decorators: CallDecorator<T>) {
this.decorators = decorators.toList()
this.decorators += decorators.toList()
}
}

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ plugins {

allprojects {
group = "net.devslash.fetchdsl"
version = "0.26.1"
version = "0.26.2"

repositories {
mavenCentral()
Expand Down
4 changes: 2 additions & 2 deletions service/src/main/kotlin/net/devslash/data/ForDuration.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class ForDuration<T>(private val duration: Duration, private val supplier: () ->
return Call(
call.url,
call.urlProvider,
1,
call.concurrency,
call.rateOptions,
null,
call.cookieJar,
call.headers,
call.type,
this,
Expand Down

0 comments on commit 6cff66e

Please sign in to comment.