File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
ackCordCore/src/main/scala/net/katsstuff/ackcord/http/requests Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -38,13 +38,14 @@ import akka.{Done, NotUsed}
38
38
*
39
39
* This should be instantiated once per bot, and shared between shards.
40
40
*/
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
48
49
)(implicit val system : ActorSystem , val mat : Materializer ) {
49
50
50
51
/**
You can’t perform that action at this time.
0 commit comments