Skip to content

Commit 817bd69

Browse files
committed
Parentheses added to GuiceContainer.terminate. Closes #39
1 parent 867f2de commit 817bd69

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

openai-guice/src/main/scala/io/cequence/openaiscala/service/GuiceContainer.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import scala.concurrent.duration._
99
import scala.concurrent.{Await, Future}
1010

1111
trait GuiceContainer {
12-
1312
protected def modules: Seq[Module]
1413

1514
protected lazy val injector: Injector = Guice.createInjector(modules :_*)
@@ -22,7 +21,7 @@ trait GuiceContainer {
2221
protected def result[T](future: Future[T]) =
2322
Await.result(future, 100.minutes)
2423

25-
protected def terminate: Unit = {
24+
protected def terminate(): Unit = {
2625
val system = instance[ActorSystem]
2726
system.terminate
2827
Await.result(system.whenTerminated, 1.day)

0 commit comments

Comments
 (0)