Skip to content

Commit a90c16e

Browse files
committed
Expanding withRunningKafka signature to accept => Any parameter. Fixes #25.
1 parent 9ffb040 commit a90c16e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/net/manub/embeddedkafka/EmbeddedKafka.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ sealed trait EmbeddedKafkaSupport {
8686
* @param body the function to execute
8787
* @param config an implicit [[EmbeddedKafkaConfig]]
8888
*/
89-
def withRunningKafka(body: => Unit)(implicit config: EmbeddedKafkaConfig) = {
89+
def withRunningKafka(body: => Any)(implicit config: EmbeddedKafkaConfig) = {
9090

9191
val factory = startZooKeeper(config.zooKeeperPort)
9292
val broker = startKafka(config)

0 commit comments

Comments
 (0)