You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by md...@apache.org on 2023/01/04 10:52:43 UTC

[incubator-pekko] branch main updated: Improve akka-actor-typed initialCommands

This is an automated email from the ASF dual-hosted git repository.

mdedetrich pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-pekko.git


The following commit(s) were added to refs/heads/main by this push:
     new b92b749946 Improve akka-actor-typed initialCommands
b92b749946 is described below

commit b92b749946c9c341ec572c9071c28d95dbdb3015
Author: Matthew de Detrich <ma...@aiven.io>
AuthorDate: Wed Jan 4 10:48:08 2023 +0100

    Improve akka-actor-typed initialCommands
---
 build.sbt | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/build.sbt b/build.sbt
index 62965b1063..2bfab8e426 100644
--- a/build.sbt
+++ b/build.sbt
@@ -466,12 +466,17 @@ lazy val actorTyped = akkaModule("akka-actor-typed")
   .settings(OSGi.actorTyped)
   .settings(initialCommands :=
     """
-      import org.apache.pekko.actor.typed._
-      import org.apache.pekko.actor.typed.scaladsl.Behaviors
+      import org.apache.pekko
+
+      import pekko.actor.typed._
+      import pekko.actor.typed.scaladsl.Behaviors
+      import pekko.util.Timeout
+
       import scala.concurrent._
       import scala.concurrent.duration._
-      import org.apache.pekko.util.Timeout
-      implicit val timeout = Timeout(5.seconds)
+      import scala.language.postfixOps
+
+      implicit val timeout = Timeout(5 seconds)
     """)
   .enablePlugins(Jdk9)
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org