minor fix

This commit is contained in:
Jonas Bonér 2010-09-06 14:17:55 +02:00
parent 4e4786972a
commit ac8874cdc7

View file

@ -267,7 +267,9 @@ object Cluster extends Cluster with Logging {
def foreach(f: (RemoteAddress) => Unit): Unit = clusterActor.foreach(_.foreach(f))
def endpoints: Array[RemoteAddress] = clusterActor.end
def endpoints: Array[RemoteAddress] = clusterActor
.getOrElse(throw new IllegalStateException("No cluster actor is defined"))
.endpoints
def start(): Unit = start(None)