Skip to content

Commit 5fcbac7

Browse files
committed
Fix compile error with RequestHelper
1 parent 71034bb commit 5fcbac7

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

ackCordCore/src/main/scala/net/katsstuff/ackcord/http/requests/RequestHelper.scala

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,14 @@ import akka.{Done, NotUsed}
3838
*
3939
* This should be instantiated once per bot, and shared between shards.
4040
*/
41-
case class RequestHelper(
42-
credentials: HttpCredentials,
43-
ratelimitActor: ActorRef,
44-
parallelism: Int = 4,
45-
bufferSize: Int = 32,
46-
overflowStrategy: OverflowStrategy = OverflowStrategy.backpressure,
47-
maxAllowedWait: FiniteDuration = 2.minutes
41+
//TODO: Make this a case class with a method name create to create a RequestHelper in 0.9
42+
class RequestHelper(
43+
val credentials: HttpCredentials,
44+
val ratelimitActor: ActorRef,
45+
val parallelism: Int = 4,
46+
val bufferSize: Int = 32,
47+
val overflowStrategy: OverflowStrategy = OverflowStrategy.backpressure,
48+
val maxAllowedWait: FiniteDuration = 2.minutes
4849
)(implicit val system: ActorSystem, val mat: Materializer) {
4950

5051
/**

0 commit comments

Comments
 (0)