Skip to content

Commit 4b92867

Browse files
authored
Update Main.java
1 parent ca1251f commit 4b92867

File tree

1 file changed

+4
-4
lines changed
  • akka/src/main/java/com/github/daggerok/reactivestreams/microprofile/akka

1 file changed

+4
-4
lines changed

akka/src/main/java/com/github/daggerok/reactivestreams/microprofile/akka/Main.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ public static void main(String[] args) {
1313
Source<String, NotUsed> source = Source.from(Arrays.asList("one", "two", "three", "four", "five"))
1414
.map("and "::concat)
1515
.reduce((s1, s2) -> s1 + " " + s2);
16-
ActorSystem sys = ActorSystem.create();
17-
Materializer mat = ActorMaterializer.create(sys);
18-
source.runForeach(System.out::println, mat);
19-
sys.terminate();
16+
ActorSystem actorSystem = ActorSystem.create();
17+
Materializer actorMaterializer = ActorMaterializer.create(actorSystem);
18+
source.runForeach(System.out::println, actorMaterializer);
19+
actorSystem.terminate();
2020
}
2121
}

0 commit comments

Comments
 (0)