Unwrap single string interpolation syntax

This commit is contained in:
Matthew de Detrich 2023-05-22 20:47:29 +02:00
parent dc216add10
commit 480f516398
No known key found for this signature in database
GPG key ID: 196CBC8FEAA4CC64
94 changed files with 276 additions and 276 deletions

View file

@ -1377,7 +1377,7 @@ final class Replicator(settings: ReplicatorSettings) extends Actor with ActorLog
require(!cluster.isTerminated, "Cluster node must not be terminated")
require(
roles.subsetOf(cluster.selfRoles),
s"This cluster member [${selfAddress}] doesn't have all the roles [${roles.mkString(", ")}]")
s"This cluster member [$selfAddress] doesn't have all the roles [${roles.mkString(", ")}]")
private val payloadSizeAggregator = {
val sizeExceeding = settings.logDataSizeExceeding.getOrElse(Int.MaxValue)

View file

@ -95,7 +95,7 @@ trait SerializationSupport {
def addressToProto(address: Address): dm.Address.Builder = address match {
case Address(_, _, Some(host), Some(port)) =>
dm.Address.newBuilder().setHostname(host).setPort(port)
case _ => throw new IllegalArgumentException(s"Address [${address}] could not be serialized: host or port missing.")
case _ => throw new IllegalArgumentException(s"Address [$address] could not be serialized: host or port missing.")
}
def addressFromProto(address: dm.Address): Address =